display parent node name

Author Message

risto CMS user

Wednesday 08 February 2006 3:17:58 am

Im in need of displaying the parent node name of an article. would someone mind showing me how?

Christian Johansen

Wednesday 08 February 2006 3:42:05 am

You'll find what you need in the documentation: http://ez.no/doc/ez_publish/technical_manual/3_6/reference/objects/ezcontentobject

You can use main_parent_node_id to fetch the parent node. I don't know if it's possible to access the parent node without fetching it first, but I don't think so.

Thomas Nunninger

Wednesday 08 February 2006 4:28:18 am

Hi,

have you tried $node.parent? The $node variable should provide a parent property which returns the parent node object (not only an id). Look at

http://ez.no/doc/ez_publish/technical_manual/3_6/reference/objects/ezcontentobjecttreenode

Have a nice day

Thomas

risto CMS user

Wednesday 08 February 2006 11:24:11 am

thanx

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 22 2025 01:53:29
Script start
Timing: Jan 22 2025 01:53:29
Module start 'layout'
Timing: Jan 22 2025 01:53:29
Module start 'content'
Timing: Jan 22 2025 01:53:29
Module end 'content'
Timing: Jan 22 2025 01:53:29
Script end

Main resources:

Total runtime0.0463 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.1563151.2109
Module start 'layout' 0.00570.0120 740.367236.6484
Module start 'content' 0.01780.0268 777.015690.0469
Module end 'content' 0.04460.0017 867.062533.9922
Script end 0.0463  901.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00265.6370140.0002
Check MTime0.00112.4335140.0001
Mysql Total
Database connection0.00102.065310.0010
Mysqli_queries0.010322.237530.0034
Looping result0.00000.047410.0000
Template Total0.00122.710.0012
Template load0.00081.706310.0008
Template processing0.00050.978610.0005
Override
Cache load0.00051.155710.0005
General
dbfile0.018740.334780.0023
String conversion0.00000.019640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs