Dissapearing Menu

Dissapearing Menu

Tuesday 04 July 2006 3:34:15 am - 1 reply

Modified on Tuesday 04 July 2006 3:34:34 am by Richard Tuin

Author Message

Nathan Kelly

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...

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

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