Forums / Setup & design / custom design override.ini problems

custom design override.ini problems

Author Message

James Ward

Tuesday 22 July 2003 7:03:14 am

Having trouble getting my custom design started. I have created my own design called "ca" it is located in /design/ca. I have added the appropriate settings to get it working and changed the pagelayout.tpl to a design I like. I now would like to setup an override to use a different pagelayout for another section. I have added a section called "access" with the Section ID 4. I created a override.ini file in /design/ca/override/ with the following lines:

[access]
Source=node/view/full.tpl
MatchFile=pagelayout_access.tpl
Subdir=templates
Match[section]=4

And I added pagelayout_access.tpl to /design/ca/override/templates with a slightly modified design.

But when I view articles and folders in section 4 they are still rendered the same as the others. All caches have been cleared. Any idea what I missed here?

working at www.wardnet.com
blogging at www.jamesward.ca

Red Bullbone

Tuesday 22 July 2003 7:08:24 am

Try 'Source=pagelayout.tpl' instead of 'Source=node/view/full.tpl'.

James Ward

Tuesday 22 July 2003 7:48:40 am

It appears I put my override file in the wrong place. I added the following lines:

[pagelayout_access]
Source=pagelayout.tpl
MatchFile=pagelayout_access.tpl
Subdir=templates
Match[section]=4

In /settings/siteaccess/ca/override.ini.append

It was not very clear in the documentation that this file goes in the settings folder and not in the design folder. Thanks all.

working at www.wardnet.com
blogging at www.jamesward.ca