How to get the node id for a section

Author Message

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>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 02:41:27
Script start
Timing: Jan 19 2025 02:41:27
Module start 'layout'
Timing: Jan 19 2025 02:41:27
Module start 'content'
Timing: Jan 19 2025 02:41:28
Module end 'content'
Timing: Jan 19 2025 02:41:28
Script end

Main resources:

Total runtime0.9361 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0094 589.2813152.6406
Module start 'layout' 0.00940.0043 741.921939.4766
Module start 'content' 0.01380.9209 781.3984520.3125
Module end 'content' 0.93470.0014 1,301.71098.1406
Script end 0.9360  1,309.8516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4093160.0002
Check MTime0.00160.1732160.0001
Mysql Total
Database connection0.00160.172510.0016
Mysqli_queries0.885094.5474540.0164
Looping result0.00070.0785520.0000
Template Total0.897495.920.4487
Template load0.00270.293820.0014
Template processing0.894695.575520.4473
Template load and register function0.00040.038510.0004
states
state_id_array0.00110.112310.0011
state_identifier_array0.00170.186020.0009
Override
Cache load0.00210.2194140.0001
Sytem overhead
Fetch class attribute can translate value0.00080.086820.0004
Fetch class attribute name0.00140.153630.0005
XML
Image XML parsing0.00090.094520.0004
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0879160.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs