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

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 18 2025 11:00:29
Script start
Timing: Jan 18 2025 11:00:29
Module start 'layout'
Timing: Jan 18 2025 11:00:29
Module start 'content'
Timing: Jan 18 2025 11:00:29
Module end 'content'
Timing: Jan 18 2025 11:00:29
Script end

Main resources:

Total runtime0.7303 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.9141152.6250
Module start 'layout' 0.00600.0039 740.539139.4453
Module start 'content' 0.00990.7191 779.9844644.7344
Module end 'content' 0.72900.0013 1,424.718820.1641
Script end 0.7303  1,444.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4262160.0002
Check MTime0.00130.1779160.0001
Mysql Total
Database connection0.00070.089510.0007
Mysqli_queries0.651389.1848740.0088
Looping result0.00070.0979720.0000
Template Total0.696295.320.3481
Template load0.00180.250020.0009
Template processing0.694495.077720.3472
Template load and register function0.00020.024610.0002
states
state_id_array0.00080.108210.0008
state_identifier_array0.00080.108620.0004
Override
Cache load0.00170.2261650.0000
Sytem overhead
Fetch class attribute can translate value0.00060.088330.0002
Fetch class attribute name0.00110.1514100.0001
XML
Image XML parsing0.00130.181730.0004
class_abstraction
Instantiating content class attribute0.00000.0030110.0000
General
dbfile0.00160.2138240.0001
String conversion0.00000.001240.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
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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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