Problem with ID in the administration

Author Message

Anthony M.

Wednesday 25 October 2006 12:24:04 am

Hello,

i override a node in my administration, and in this page, i have a link with the url of this current node :

<a href={concat("/layout/set/seepage/",$node.url_alias)|ezurl()} target="_blank">See</a>

but when i click on this link to see the page 'seepage_pagelayout.tpl' (where i use '$node.node_id'), the first time it's good and then that doesn't function... i have to clear the cache to get the id...
i don't know why... can you help me ??

Thanks a lot

Anthony

André R.

Wednesday 25 October 2006 1:06:31 am

$node is not present in the paglayout on cached pages.
In paglayout use $module_result.node_id, but be aware that this variable is not present system pages (user/ and so on).

Take a look at this page:
http://ez.no/doc/ez_publish/technical_manual/3_8/templates/the_pagelayout/variables_in_pagelayout

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Anthony M.

Wednesday 25 October 2006 2:45:11 am

now it's good !!
thank you very much.

Anthony

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.