Tuesday 13 July 2010 12:26:59 am
Hello ! Maybe I do not understand correctly what you want to do, but if you only need to have a frontpage (let's say "contact" ) with a red background, and another frontpage ("Business" ) with a green background, for instance, I think you don't even have to modify pagelayout.tpl... There are two solutions I would prefer : 1. In frontpage.tpl (lets assume that your contact frontpage has 123 as node ID, and business has 124):
{if eq($node.node_id, 123)}
<div class="page_red">
{else if eq($node.node_id, 124)}
<div class="page_green">
{else}
<div = "page_none">
{/if}
...
</div> (check syntax) 2.If the structure of your red page is fondamentally different than the structure of your green page, you can also override the frontpage.tpl for each node. Example of the declaration in override.ini :
[frontpage_contact]
Source=node/view/full.tpl
MatchFile=frontpage_contact.tpl
Subdir=templates
Match[node]=123
(the same for business) Don't forget to put this declaration before the default frontpage one, so its priority is the greatest of the two (otherwise your override will not be effective).
|