Forums / Setup & design / layout problem

layout problem

Author Message

philumo luan

Monday 20 August 2007 2:42:05 am

im new member in ezpublish.

i have some problem and hope getting the feed back from all of you.

when i create pagelayout.tpl. Because i have 2 layout must to show on the pagelayout.tpl so i write a If condition but its wrong .

my conditions are :
when the page is loaded at first time which will show welcome layout and when we click on the link in this welcomepage we will go to o ther layout but this layout have to be load on this pagelayout too.

pls help me.

thanks you

Felix Laate

Monday 20 August 2007 4:07:05 am

Hi Philumo,

welcome to the eZ Publish community!

You could do something like this:

{if eq($module_result.node_id,2)}
  Your frontpage (if it's node 2)
{else}
  The rest of your pages
{/if}

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com