Sunday 16 January 2005 12:28:44 pm
Hi all,
I have a site with 7 major sections, which are the top 7 nodes off the root node. I also have a large number (say 30) other sections. I need to change the look of the site based on which of the major sections the user is in. Ive set up appropriate overrides to do this and it works fine, until the user goes into one of the other sections as the override now dosent match.
I figure I can potentially solve this in one of the following ways:
- Create an override for each section - the downside of this is the management overhead, its a lot of work and its going to get messy very quickly.
- Use an override syntax that caters for this (Is there one?) - The changes in the look could be controlled by a single template with code to determine which "section" the user is in without using section functionality. ie some way of determining which node off the root node the user is in (Im not sure how to do this over multiple levels of hierachy). I think this is probably the best way of achieving what I want but could use some assistance with the code. Is there a better way of doing this? Any help greatly appreciated. cheers Arran
|