Share » Forums » Developer » Another v. 3.2-2 related issue

Another v. 3.2-2 related issue

Another v. 3.2-2 related issue

Tuesday 21 October 2003 5:59:14 am - 2 replies

Author Message

Hans Melis

Tuesday 21 October 2003 2:23:18 pm

AFAIK, $node is not available in pagelayout templates when you're using viewcaching.

What I use in pagelayout templates (and it works with caching) is $module_result.node_id

If you do {$module_result|attribute(show)}, you'll find even more interesting variables. And if you really need the node itself, instead of just the ID, you can always do a fetch('content','node', hash(node_id, $module_result.node_id))

hth

--
Hans

Hans
http://blog.hansmelis.be

Eirik Alfstad Johansen

Wednesday 22 October 2003 12:41:01 am

Hi Hans,

Thanks a lot for the tip. I don't know why it worked using $node_id in the previous version, but the $module_result was eactly what I needed to get it working in in 3.2-2.

Thanks again !

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu