Forums / Setup & design / Overriding page_mainarea.tpl, I can not get it to work

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

eZ debug

Timing: Jan 31 2025 08:12:59
Script start
Timing: Jan 31 2025 08:12:59
Module start 'content'
Timing: Jan 31 2025 08:12:59
Module end 'content'
Timing: Jan 31 2025 08:13:00
Script end

Main resources:

Total runtime0.2720 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.1719180.8125
Module start 'content' 0.00570.0069 768.984497.9453
Module end 'content' 0.01260.2593 866.9297526.6250
Script end 0.2719  1,393.5547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.1694200.0002
Check MTime0.00120.4502200.0001
Mysql Total
Database connection0.00100.372810.0010
Mysqli_queries0.223982.32501410.0016
Looping result0.00140.51421390.0000
Template Total0.258995.210.2589
Template load0.00080.286710.0008
Template processing0.258294.916610.2582
Override
Cache load0.00050.196310.0005
Sytem overhead
Fetch class attribute can translate value0.00090.313210.0009
XML
Image XML parsing0.00020.085310.0002
General
dbfile0.00983.6195200.0005
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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