Forums / Setup & design / current node?

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.