Forums / Setup & design / Override files not working

Override files not working

Author Message

Andrew Lian

Monday 07 March 2005 3:47:43 am

Dear All,

I asked this question in another part message but titled it wrongly.

Briefly, the override .tpl files created during the making of the tscm site are not activated. Instead the standard /design/standard/templates/node/view/full.tpl file is invoked. I have cheked this by adding HTML code in the full.tpl file.

As far as I can tell all the override .tpl files are correctly placed - they have been placed automatically by the system. e.g. The guest book template override is placed in /design/tscm/override/templates/full_view_guestbook_folder.tpl

The directories are all owned by apache and by group apache (my web server user).

The linkages *seem* correct.

I would appreciate any clues.

Thanks
Andrew

Łukasz Serwatka

Monday 07 March 2005 4:48:25 am

Hi Andrew,

What are your settings for full_view_guestbook_folder.tpl in settings/siteaccess/(site)/override.ini.append.php? Are you sure that full_view_guestbook_folder.tpl is correctly assigned to this folder?

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Andrew Lian

Monday 07 March 2005 5:42:23 am

Hi Lukasz,

yes I agree that this file (and all the others I have created) do not seem to be found - a path problem is therefore on the cards as you suggest. I still have not figured out the way ezpublish constructs its paths, but I will follow up. The entry for full_view_guestbook_folder.tpl is

[full_view_guestbook_folder]
Source=node/view/full.tpl
MatchFile=full_view_guestbook_folder.tpl
Subdir=templates
Match[class_identifier]=folder
Match[section]=8

This looks very similar to the all the other overrides - but I have no proof that any of the template overrides are working (mine are definitely NOT owrking). The details all seems correct e.g. section and class_identifier. The only thing I am unsure of in terms of path is the meaning of Subdir=templates. My question I guess is subdir of what dir???

Can you tell me where the full path may be found? I will try and figure it out for myself but any help would be really appreciated.

Thank you
Andrew

Łukasz Serwatka

Monday 07 March 2005 5:56:13 am

Hi Andrew,

Your settings are alright. What are your settings in settings/siteaccess/(site)/site.ini.append.php for

[DesignSettings]
SiteDesign=news
AdditionalSiteDesignList[]=base

Did you change plain folder name to other in design/? If yes, then you should set the same value to SiteDesign=

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Christiane Kloss

Monday 07 March 2005 5:58:13 am

Hi Andrew,

open your override.ini.append in an editor.
Usually new entries from the admin-interface are placed at the bottom of the page. If you find your full_view_guestbook-entry there, move it to the top of the override.ini.append.
ez uses the first match. So if ez finds full_folder first, it will never know, that there is a special template for the guestbook section.
Clear your caches. Should work.

Hope, I could help

Andrew Lian

Monday 07 March 2005 6:14:47 am

Hi again Lukasz

[DesignSettings]
SiteDesign=tscm
AdditionalSiteDesignList[]=base

I changed "plain" to tscm as instructed in the tutorial - that is reflected above.

The only mention of plain which remains in the directory structure and filenames is ./standard/templates/content/datatype/view/plain

I switched on debug for the templates and it is clear that the system is not using any of my override files although some overrides are being picked up. I have not had time to analyse them yet - and as I live in Australia it is 1.15 am .... and I might have to leave it till tomorrow - but will keep at it for another hour or so.

cheers
andrew

Andrew Lian

Monday 07 March 2005 6:18:55 am

Hi Christiane,

Thanks for the tip. You may have seen the correspondence with Lukasz.

I have found the entry etc. and will move it up. That may help although I did reprioritize them using the web interface: does not seem to have helped if that is how the system works.

Ciao for now
Andrew

Andrew Lian

Monday 07 March 2005 6:41:38 am

Moving the files up appears to have worked

Thanks very much to both of you. Obvioulsy not a problem of path but of priority essentially. Which unfortunately means that the web interface does not deal with all of the problems one might encounter even though I reprioritized the new templates. I guess I will learn with more practice - anyway so far so good. I appreciate your collective help.

Andrew

eZ debug

Timing: Jan 18 2025 04:08:40
Script start
Timing: Jan 18 2025 04:08:40
Module start 'content'
Timing: Jan 18 2025 04:08:41
Module end 'content'
Timing: Jan 18 2025 04:08:41
Script end

Main resources:

Total runtime0.7604 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 587.7109180.8359
Module start 'content' 0.00540.6231 768.5469649.8125
Module end 'content' 0.62850.1318 1,418.3594341.0625
Script end 0.7603  1,759.4219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4948210.0002
Check MTime0.00140.1881210.0001
Mysql Total
Database connection0.00060.078710.0006
Mysqli_queries0.661587.00282110.0031
Looping result0.00190.25472090.0000
Template Total0.737497.020.3687
Template load0.00190.247220.0009
Template processing0.735596.729220.3678
Template load and register function0.00010.019110.0001
states
state_id_array0.00070.094010.0007
state_identifier_array0.00060.081520.0003
Override
Cache load0.00160.2153650.0000
Sytem overhead
Fetch class attribute can translate value0.00090.120840.0002
Fetch class attribute name0.00190.2541100.0002
XML
Image XML parsing0.00170.230140.0004
class_abstraction
Instantiating content class attribute0.00000.0031110.0000
General
dbfile0.00250.3259350.0001
String conversion0.00000.000830.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs