Forums / Setup & design / How to get the node id for a section
bipul kuri
Thursday 14 October 2004 12:31:10 am
Hi,I want the node_id of the section say news which has node_id=108
{let children=fetch(content,list,hash(parent_node_id,108))}
but I want to remove the node id and instead get the node id from the section name something like $nodeno=getNodeId("news") // where news is the name od the section
Alex Jones
Thursday 14 October 2004 6:38:56 am
Hi, I'm not quite sure what you are trying to get. Could you provide a little more information? Are you attempting to get the <i>Section ID</i>? Sections do not have <i>Node ID</i>s as many nodes could belong to a section.
If you are trying to find the <i>Section ID</i> of the current node, you can use <i>$DesignKeys:used.section</i>. If I am missing the point, please let me know, so we can find a solution for your problem.
<b>Template variables set by ez Publish:</b> http://ez.no/ez_publish/documentation/customization/custom_design/template_variables_set_by_ezpublish
Alex [ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ] <i>When in doubt, clear the cache.</i>