Share » Forums » General » error only in cached template

error only in cached template

error only in cached template

Wednesday 18 January 2006 9:25:27 am - 3 replies

Modified on Wednesday 18 January 2006 10:06:52 am by j jevack

Author Message

j jevack

Wednesday 18 January 2006 12:44:41 pm

I fixed the problem and I think it was using $node variable in a page layout template. When I replaced the $node.node_id variable in the first line with $module_result.content_info.node_id everything works fine.

Is this because $node is only available in a content view? Why would it work when not cached and only have problems when executing a cached template?

Thanks

Jason

Esteban Rodriguez

Wednesday 18 January 2006 1:16:02 pm

Thats exactly the problem, $node is not available outside $module_result and you notice it when the cache is turned on.

Check this page out, its quite handy:
http://ez.no/doc/ez_publish/technical_manual/3_6/templates/the_pagelayout/variables_in_pagelayout

I have great faith in fools; self-confidence my friends call it.

http://presencia.net

j jevack

Thursday 19 January 2006 3:40:25 am

Thanks for the explanation Esteban. That makes sense.

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

36 542 Users on board!

Forums menu