Forums / Setup & design / Basic template problem
Lars Arne Brekken
Tuesday 01 July 2003 1:05:32 am
I'm using the demo site, and I added a new folder (section 1) with two objects of class 'book' inside (id 102 and 103).
I set read permissions for the anonymous user.
I created a simple HTML file, pagelayout_book.tpl, and put it in /design/demo/override/templates/.
I added the following in settings/siteaccess/demo/override.ini.append: [pagelayout_book] Source=pagelayout.tpl MatchFile=pagelayout_book.tpl Subdir=templatesMatch[section]=1
When I go to index.php/demo/content/view/full/102 I see the title of one of the books, but design/demo/templates/pagelayout.tpl is still beeing used (I have this kind of debugging on that lets me see which templates are used).
What am I missing here?
Paul Forsyth
Tuesday 01 July 2003 1:16:38 am
Do you get any errors from debugging about the pagelayouts?
Maybe your pagelayout_book file permissions are not set correctly?
paul
Tuesday 01 July 2003 1:20:17 am
Forgot to write that I gave pagelayout_book.tpl proper permissions.
Tuesday 01 July 2003 1:29:24 am
I made it work now. The problem was that even I have turned caching off, old templates were used. Deleting var/cache solved it all!
Tuesday 01 July 2003 1:33:20 am
Ah, always a pain that one! ;) Wish we could switch all cache off via the ini files.