I've already try to use sections, but an object can only have one section (it is the one of its main location). So I can't assign several designs to a page with sections.
On 7/15/10, Carlos Revillo <[email protected]> wrote: > i would add two sections and will add override conditions for each one... > > 2010/7/15 Kévin Surrault <[email protected]> > >> Hello ! >> >> I am integrating a site which has two main parts. There are red pages >> and green pages that have only a few differences (background color and >> menus). There is a page that belongs to the two parts of the site, so >> it must have a red design and a green design, depending on the link >> that call it. >> >> My problem is : in the pagelayout template, how should I proceed to >> automatically set the appropriate design (red or green) to the page ? >> >> I've thought of fetching the node parent so I can know which part of >> the site is currently viewed, and then setting menus and divs like >> this (as in ezwebin templates) : >> >> {if eq($site_design, 'red')} >> {include uri='design:page_redmenu.tpl'} >> <div id='red'> >> {else} >> {include uri='design:page_greenmenu.tpl'} >> <div id='green'> >> {/if} >> >> ... </div> >> >> Is that a proper solution ? Do you have any better way to know the >> current part of the site, and to display the page in consequence ? >> >> Thank you ! >> >> ___ >> Kévin >> -- >> Sdk-public mailing list >> [email protected] >> http://lists.ez.no/mailman/listinfo/sdk-public >> > -- Sdk-public mailing list [email protected] http://lists.ez.no/mailman/listinfo/sdk-public
