Forums / Setup & design / pagelayout for different sections

pagelayout for different sections

Author Message

Ndjientcheu Patrick

Friday 03 November 2006 11:13:55 pm

hi!
I would like to know if it is possible to have multiple pagelayout (file pagelayout.tpl) which correspond to different sections. If it is possible, how may i assign these layouts to corresponding sections?
Thanks.

Siniša Šehović

Saturday 04 November 2006 12:33:29 pm

Hi Patrick,

You can create template override for specific section.

The main pagelayout template is pagelayout.tpl

Best regards,
S.

---
If at first you don't succeed, look in the trash for the instructions.

Ndjientcheu Patrick

Sunday 05 November 2006 6:34:46 am

But, how can I specify that such-and-such pagelayout corresponds to such-and-such section?
Thanks.

Mark Marsiglio

Sunday 05 November 2006 6:52:11 am

In your override.ini.append.php file:

[pagelayout_mynewsection]
Source=pagelayout.tpl
MatchFile=pagelayout_sectionname.tpl
Subdir=templates
Match[section]=my_section

Where a new pagelayout file is called "pagelayout_sectionname.tpl" and a new section name is "my_section"

Another thing that we often do is use one pagelayout with switches for sections.

Even more ingenious (I think) is setting div id names tagged with the section ID -

<div id="header-design-{$DesignKeys:used.section}">

Then in our CSS, we have rules called:

div#header-design-1 {background: url(image1.jpg)}
div#header-design-5 {background: url(image5.jpg)}
div#header-design-6 {background: url(image6.jpg)}

This way we can have separate designs without maintaining multiple pagelayouts (as long as they are all based on the same structure).

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions