Share » Forums » Setup & design » Creating Groups Areas / Multiple...

Creating Groups Areas / Multiple Section Template Overrides?

Creating Groups Areas / Multiple Section Template Overrides?

Thursday 01 March 2007 4:38:24 am - 2 replies

Modified on Thursday 01 March 2007 4:40:44 am by Paul Wilson

Author Message

Claudia Kosny

Thursday 01 March 2007 5:02:07 am

Hi Paul

You say:

... I even tried separating this out into three entries, each with a single Match[section]. By changing the order I discovered that it is always the last entry that is recognised - the first two are ignored.

This approach should work. From your error description I guess that you have really copied the section three times and just changed the section ids. But you also need to change the name of this override match (the [pagelayout_groups]). Otherwise the last entry will overwrite any preceding entries with the same name.

Claudia

Paul Wilson

Thursday 01 March 2007 2:55:15 pm

Aha. Thanks Claudia, that's it.

Too many long days and late nights/early mornings working with EZ Publish has taken its toll on me.

For anyone else, the method that works is as follows:

Different pagelayouts for each section:

[pagelayout_group_36]
Source=pagelayout.tpl
MatchFile=pagelayout_group_36.tpl
Subdir=templates
Match[section]=36

[pagelayout_group_37]
Source=pagelayout.tpl
MatchFile=pagelayout_group_37.tpl
Subdir=templates
Match[section]=37

OR
The same (new) pagelayout file for each section:

[pagelayout_group_36]
Source=pagelayout.tpl
MatchFile=pagelayout_groups.tpl
Subdir=templates
Match[section]=36

[pagelayout_group_37]
Source=pagelayout.tpl
MatchFile=pagelayout_groups.tpl
Subdir=templates
Match[section]=37

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu