Basic template problem

Author Message

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=templates
Match[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

Lars Arne Brekken

Tuesday 01 July 2003 1:20:17 am

Forgot to write that I gave pagelayout_book.tpl proper permissions.

Lars Arne Brekken

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!

Paul Forsyth

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.

paul

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:38:39
Script start
Timing: Jan 31 2025 00:38:39
Module start 'layout'
Timing: Jan 31 2025 00:38:39
Module start 'content'
Timing: Jan 31 2025 00:38:39
Module end 'content'
Timing: Jan 31 2025 00:38:39
Script end

Main resources:

Total runtime0.0243 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1250151.2109
Module start 'layout' 0.00530.0039 739.3359220.6875
Module start 'content' 0.00910.0136 960.0234997.6641
Module end 'content' 0.02270.0016 1,957.687533.9922
Script end 0.0242  1,991.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002811.3766140.0002
Check MTime0.00124.8006140.0001
Mysql Total
Database connection0.00083.418110.0008
Mysqli_queries0.00249.944930.0008
Looping result0.00000.045210.0000
Template Total0.00124.910.0012
Template load0.00093.735210.0009
Template processing0.00031.157710.0003
Override
Cache load0.00062.614910.0006
General
dbfile0.00187.351780.0002
String conversion0.00000.034440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs