Forums / Setup & design / How to use pagelayout_*.tpl

How to use pagelayout_*.tpl

Author Message

Mark Overduin

Monday 18 August 2003 3:10:39 am

Sorry, it's been a while since I worked with ezP3 ('cause of work, work, vacation, work, etc.) and I have to admit that I don't really remember the following:

I know how to 'define' a custom pagelayout template (ie pagelayout_test.tpl; defined in /settings/siteaccess/mysiteaccess/override.ini.append).
But, what I don't get at the moment, is how ezP3 knows, it has to call pagelayout_test.tpl instead of pagelayout.

I put a pagelayout_test.tpl file in the dir /design/mydesignstuff/override/templates. This does not really work, where do I need to 'tell' ezP3 to use the new template?

Tnx in advance...

Alexandre Cunha

Monday 18 August 2003 4:03:52 am

How you define the pagelayout_test.tpl on the /settings/siteaccess/mysiteaccess/override.ini.append file ?
What is the result you get ?

Lets see this example:
[pagelayout_test]
Source=pagelayout.tpl
MatchFile=pagelayout_test.tpl
Subdir=templates
Match[section]=1

Maybe your problem is not in the override.ini.append but in the /settings/siteaccess/mysiteaccess/site.ini.append

Be sure you assign the correct design for this site. In your example must be:
[DesignSettings]
SiteDesign=mydesignstuff

Hope this helps.

axel

http://AlexandreCunha.com

Mark Overduin

Monday 18 August 2003 4:40:23 am

Sorry, doesn't help.

All the settings are correct;
- definition of the template is exactly the same as your example
- [DesignSettings] is set to 'mydesignstuff'

I don't think it has to do with [DesignSettings], because when I look at the demo-data, there are multiple pagelayout_*.tpl's and it uses just 'demo' as siteaccess.

It's funny actually, because a few weeks ago I made a template, changed some things in some files (and aarrgh, I don't remember exactly what I did!!) and it worked fine. But now, a few weeks later, with a lot of things on my mind I can't really remember what I did to make it work...

-- Mark

Mark Overduin

Monday 18 August 2003 5:52:10 am

Aah, I remember now... :D

You have to add your code to '/settings/siteaccess/yoursiteaccess/override.ini.append' (which I knew). There, you have to enter a section number. In the admin console, you can define various sections. Every section has an ID (of course).
I'm just doing tests and all and found out I was just using 1 section, so I can never user multiple pagelayout_*.tpl's in my site... Yes, it all makes sense now... It's all about sections...

-- Mark