Overriding page_mainarea.tpl, I can not get it to work

Author Message

Tore Skobba

Wednesday 10 December 2003 10:04:41 am

Hi all

I am trying to override the page_mainarea.tpl. I have copied it to my design folder togther with the rest of the page* templates (such as page_head.tpl etc.). All the other templates are working, but I cannot get EZ to use my page_mainarea.tpl, it is always falling back to the standard one! Have anyone here had similar problems, eventual what is the solution?

cheers
Tore

Little update. Instead of overriding the page_mainarea.tpl (because it did not work). I created my own template called page_content.tpl, put it in my design/template folder and then from my page_mainlayout.tpl inserted a "{include uri="design:page_content.tpl"}". However, this does not either work...

Claus Jensen

Thursday 11 December 2003 5:15:33 am

Hello,
What version are you using, and what is the path to the directory where you put the files? Are you using the /design/xxx/templates/ or /design/xxx/override/templates/

...AND have you cleared the template cache, and maybe also the contentview and ini-cache??

best,
claÜs

Tore Skobba

Thursday 11 December 2003 6:19:10 am

Hi

I am using version Ez version 3.2-3 (3.2 release 3). Path to my dicrectory is: ezroot/design/gsa/templates where gsa is the name of my design, which is working fine except for the page_mainarea.tpl override. I am not using override as I am working on my standard pagelayout.tpl design. I have cleared all the caches several times (both by clicking clear "all caches" and cleared them specifically). I am getting really frustrarted on this becuase I do not understand it at all... When using another template I get this in debug "No template could be loaded for "page_content.tpl" using resource "design"

Cheers
Tore

PS: Update. Think I have found it.. Seems as the "clear cache" in setup was not working 100%!!! Since once I manually deleted all files in /var/gsa/cache it worked! Strange because during my last design all worked fine... hmmmm should maybee have a button in admin deleting all cache FOLDERS! I do not know how many hours I have spent due to stale/incorrect cache!

Thanks for help Claüs

Update: Might it have something to do with that I started on the new design by altering an old custom design. I started by copying all files from the old design to the new empth design folder. Then editing those files, after some hours chaning my mind and starting from scratch, therefore deleting all template files. Then making new templates. However, many with same name as before. Might this have confused the cache clearing mechanisms.

Claus Jensen

Thursday 11 December 2003 6:28:41 am

Hi,
Try copying it to design/override/templates/ directory. I remember having done something like that once.

Are you using the debug option?:
[TemplateSettings]
# Use either enabled to see which template files are loaded or disabled to supress debug
Debug=disabled

cheers,
claÜs

Sandra Parente

Thursday 11 December 2003 7:16:07 am

Rename the page_mainarea.tpl (and/or page_mainlayout.tpl) in design/standard (do not delete it, you can need it again). Just see what happens...

Sandra Parente
www.netbliss.it

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 19 2025 07:12:45
Script start
Timing: Jan 19 2025 07:12:45
Module start 'layout'
Timing: Jan 19 2025 07:12:45
Module start 'content'
Timing: Jan 19 2025 07:12:46
Module end 'content'
Timing: Jan 19 2025 07:12:46
Script end

Main resources:

Total runtime1.0212 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.3984152.6563
Module start 'layout' 0.00690.0032 742.054739.5078
Module start 'content' 0.01021.0092 781.5625596.7969
Module end 'content' 1.01940.0017 1,378.359412.1094
Script end 1.0211  1,390.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3399160.0002
Check MTime0.00150.1500160.0001
Mysql Total
Database connection0.00130.127210.0013
Mysqli_queries0.957893.7898650.0147
Looping result0.00070.0704630.0000
Template Total0.982396.220.4911
Template load0.00230.221120.0011
Template processing0.980095.969820.4900
Template load and register function0.00020.016810.0002
states
state_id_array0.00110.110110.0011
state_identifier_array0.00180.175020.0009
Override
Cache load0.00190.1841340.0001
Sytem overhead
Fetch class attribute can translate value0.00060.060930.0002
Fetch class attribute name0.00090.091060.0002
XML
Image XML parsing0.00080.078630.0003
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00080.0805160.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 25
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs