Also using two siteaccesses can be a good idea: - 3 sections for content, green, red and mixed - green siteaccess only shows green+mixed content - red siteaccess only shows red+mixed content
i would add two sections and will add override conditions for each one... 2010/7/15 Kévin Surrault <[email protected] <mailto:[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] <mailto:[email protected]> http://lists.ez.no/mailman/listinfo/sdk-public
<<attachment: gg.vcf>>
-- Sdk-public mailing list [email protected] http://lists.ez.no/mailman/listinfo/sdk-public
