main_node_id and url_alias

Author Message

risto CMS user

Tuesday 29 August 2006 7:37:59 am

How can I have the template link to the main_node url_alias?

If an article has multiple locations, how can I link to the main location if it a result from somwhere else?

Marcin Drozd

Tuesday 29 August 2006 7:48:18 am

Hi
Did U try sth like this: $node.main_node.url_alias ? (or $node.object.main_node.url_alias)

http://ez-publish.pl

risto CMS user

Tuesday 29 August 2006 8:00:24 am

thanks ;-)

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

Main resources:

Total runtime0.0225 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 588.1328151.2109
Module start 'layout' 0.00460.0038 739.3438220.6875
Module start 'content' 0.00840.0125 960.0313997.7891
Module end 'content' 0.02090.0016 1,957.820329.9922
Script end 0.0225  1,987.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002611.7370140.0002
Check MTime0.00104.5050140.0001
Mysql Total
Database connection0.00073.217710.0007
Mysqli_queries0.00229.736730.0007
Looping result0.00000.102810.0000
Template Total0.00115.010.0011
Template load0.00093.838510.0009
Template processing0.00031.182410.0003
Override
Cache load0.00062.666710.0006
General
dbfile0.00156.875080.0002
String conversion0.00000.040340.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