Get the section_id of a node?

Author Message

Lydie Soler

Wednesday 10 August 2005 4:45:31 am

Hi I have the following code

{let monnoeud=fetch( 'content', 'node', hash( 'node_id', $menu.id ) )}

now I would like to get the section_id where monnoeud belongs to.

It seems that it is node directly available....

How can I do that?

Thanks for your help

Lydie Soler

Wednesday 10 August 2005 5:35:42 am

leave it I have found...

{$monnoeud.object.section_id}

with the help of this page
http://ez.no/doc/ez_publish/technical_manual/3_6/templates/the_template_language/array_and_object_inspection

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 04:39:11
Script start
Timing: Jan 19 2025 04:39:11
Module start 'layout'
Timing: Jan 19 2025 04:39:11
Module start 'content'
Timing: Jan 19 2025 04:39:12
Module end 'content'
Timing: Jan 19 2025 04:39:12
Script end

Main resources:

Total runtime0.8417 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 590.2891152.6250
Module start 'layout' 0.00500.0036 742.914139.4453
Module start 'content' 0.00870.8315 782.3594424.2813
Module end 'content' 0.84010.0015 1,206.64068.1641
Script end 0.8417  1,214.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4041160.0002
Check MTime0.00130.1560160.0001
Mysql Total
Database connection0.00070.086510.0007
Mysqli_queries0.801395.2015520.0154
Looping result0.00050.0557500.0000
Template Total0.810196.220.4050
Template load0.00230.269820.0011
Template processing0.807895.971120.4039
Template load and register function0.00020.020210.0002
states
state_id_array0.00140.171910.0014
state_identifier_array0.00110.129620.0005
Override
Cache load0.00190.2305140.0001
Sytem overhead
Fetch class attribute can translate value0.00060.067710.0006
Fetch class attribute name0.00100.116820.0005
XML
Image XML parsing0.00010.011510.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00070.0828100.0001
String conversion0.00000.005440.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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.0001 secs