node attribute to output primary location ID [solved]

Author Message

Salvatore Guarino

Tuesday 22 November 2005 9:12:25 am

Is there a way to fetch the ID of the primary location of a node? Something like $node.primary_node_id

Bye,

Salvatore

Salvatore Guarino

Wednesday 23 November 2005 9:11:49 am

$node.main_node_id

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 31 2025 06:17:38
Script start
Timing: Jan 31 2025 06:17:38
Module start 'layout'
Timing: Jan 31 2025 06:17:38
Module start 'content'
Timing: Jan 31 2025 06:17:38
Module end 'content'
Timing: Jan 31 2025 06:17:38
Script end

Main resources:

Total runtime0.0182 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.0068 588.2813151.2266
Module start 'layout' 0.00680.0036 739.507836.6797
Module start 'content' 0.01040.0061 776.187590.0938
Module end 'content' 0.01660.0016 866.281329.9922
Script end 0.0182  896.2734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.2500140.0002
Check MTime0.00116.2678140.0001
Mysql Total
Database connection0.00084.419710.0008
Mysqli_queries0.004927.063430.0016
Looping result0.00000.089110.0000
Template Total0.00126.710.0012
Template load0.00095.030510.0009
Template processing0.00031.605610.0003
Override
Cache load0.00063.545410.0006
General
dbfile0.00168.734580.0002
String conversion0.00000.043340.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