Wednesday 05 July 2006 12:24:54 am
Hi Richard, I had a similar problem with this today, I was using $node.whatever in an override pagelayout i.e. home_pagelayout.tpl I was trying to out put the description from the main node on the home page with:
{$node.object.data_map.description.content.output.output_text}
This worked fine untill the page was cached. I changed my home_pagelayout.tpl to instead include:
{include uri="design:page_mainarea.tpl"}
Then I created an override template for page_mainarea.tpl, my override template now contains my $node.whatever and everything works fine now.
[home_mainarea]
Source=node/view/full.tpl
MatchFile=full/home_page.tpl
Subdir=templates
Match[node]=2
So I'd suggest you don't use the $node variable in the pagelayout if you want to use the cache. I hope this solves your problem. Cheers!
Pardon me while I burst into flames...
|