current node?

Author Message

xiao jc

Wednesday 19 May 2004 1:39:08 am

in pagelayout.tpl,I can't get the current node,i use {$node.name},but nothing cab be showed,
can someone help me?thanks a lot,

the ezpublish version is 3.3.4

Valentina Ferrari

Wednesday 19 May 2004 1:49:47 am

Hi,
try to use {$node.node_id}

Bye Bye
Valentina

xiao jc

Wednesday 19 May 2004 2:15:21 am

thank you:)

but the same thing happened.:(

xiao jc

Wednesday 19 May 2004 3:07:21 am

after i deleted the cache files,the node_id can be showed,but if i refresh without deleting cache,it will not showed.
anyone know what the problem is?

thank:)

akiL Mussa

Wednesday 19 May 2004 3:51:37 am

Check if your settings in your site.ini is like this:

[TemplateSettings]
TemplateCache=disabled

[ContentSettings]
ViewCaching=disabled

Alex Jones

Wednesday 19 May 2004 5:55:22 am

<i>$node.node_id</i> will only work when caching is disabled. Use <i>$DesignKeys:used.node</i> to find the node id of a cached page.

Template variables set by ezPublish: http://ez.no/ez_publish/documentation/customization/custom_design/template_variables_set_by_ezpublish

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

xiao jc

Thursday 20 May 2004 1:06:41 am

thanks very much,
with your helps the problem was solved.

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

Main resources:

Total runtime0.0146 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.0045 588.0078151.1953
Module start 'layout' 0.00450.0025 739.203136.6172
Module start 'content' 0.00700.0062 775.820394.1094
Module end 'content' 0.01320.0014 869.929733.9922
Script end 0.0146  903.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.6223140.0002
Check MTime0.00107.0948140.0001
Mysql Total
Database connection0.00064.384210.0006
Mysqli_queries0.002416.086330.0008
Looping result0.00000.068410.0000
Template Total0.00117.510.0011
Template load0.00095.823410.0009
Template processing0.00021.672010.0002
Override
Cache load0.00064.185610.0006
General
dbfile0.001912.688680.0002
String conversion0.00000.053740.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