Template Override

Author Message

Sirvash Sharma

Tuesday 25 April 2006 2:13:25 am

Hi
I am trying to override template for node id - 130.
and using this code but bydefault it is using the folder.tpl

settings/siteaccess/news/override.ini.append.php
[top_news]
Source=node/view/full.tpl
MatchFile=/full/top_news.tpl
Subdir=templates
Match[class_identifier]=folder
Match[node]=130

Please suggest me about this problem.
Thanks

Kristof Coomans

Tuesday 25 April 2006 2:17:07 am

Hi Sirvash

Did you clear the INI and template override caches after adding the override?

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Sirvash Sharma

Tuesday 25 April 2006 5:54:34 am

Hi
very thax to suggest me regarding this problem. after adding the override template i clear the plain cache (var/plain/cache) then apply.

I am not getting the mean of INI cache please explain it.

Thanks

Sebastiaan van der Vliet

Thursday 27 April 2006 8:01:33 am

Hi Sirvash,

If you need the override for node id 130, you do not need the additional match rule for folder.
Try moving your override rule all the way to the top of your override.ini.append.php file, or at least above the match rule for the folder template: the order in the override list matters.

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Sirvash Sharma

Friday 28 April 2006 2:00:22 am

Hi Sebastiaan,

Thanks I have apply these things also but no changes there. i have wrote the code top order like below.

[top_news]
Source=node/view/full.tpl
MatchFile=full/news.tpl
Subdir=templates
Match[node]=130

Please suggest me if any requrement of code modification.
Thanks

Sebastiaan van der Vliet

Friday 28 April 2006 7:06:23 am

Hi Sirvash,

Could you check the following:

1. The location of your override template, e.g. design/<name of your site design>/override/templates/full/top_news.tpl.
2. Settings file:
[DesignSettings]
SiteDesign=<name of your site design>
AdditionalSiteDesignList[]=base
etc...

Certified eZ publish developer with over 9 years of eZ publish experience. Available for challenging eZ publish projects as a technical consultant, project manager, trouble shooter or strategic advisor.

Sirvash Sharma

Tuesday 02 May 2006 12:45:43 am

Hi Sebastiaan,
I have checked the all settings and also path of top_news.tpl. these settings are same as well as suggest me but there is no changes same problem arrise once.

1. design/news/override/templates/full/top_news.tpl.
2.Settings
[DesignSettings]
SiteDesign=news
AdditionalSiteDesignList[]=base

Please suggest me if any changes require.
Thanx

 

Sirvash Sharma

Monday 08 May 2006 10:57:33 pm

Hi! Sebastiaan,
override templates working.

Thanks for suggestion.
Sirvash Sharma

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 01:06:38
Script start
Timing: Jan 19 2025 01:06:38
Module start 'layout'
Timing: Jan 19 2025 01:06:38
Module start 'content'
Timing: Jan 19 2025 01:06:39
Module end 'content'
Timing: Jan 19 2025 01:06:39
Script end

Main resources:

Total runtime0.9004 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.0073 590.4688152.6094
Module start 'layout' 0.00740.0034 743.078139.4297
Module start 'content' 0.01070.8881 782.5078652.9063
Module end 'content' 0.89880.0015 1,435.414120.1875
Script end 0.9003  1,455.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4210160.0002
Check MTime0.00150.1656160.0001
Mysql Total
Database connection0.00090.097710.0009
Mysqli_queries0.822391.3319740.0111
Looping result0.00070.0830720.0000
Template Total0.865496.120.4327
Template load0.00240.271320.0012
Template processing0.863095.847420.4315
Template load and register function0.00010.011710.0001
states
state_id_array0.00080.091610.0008
state_identifier_array0.00080.084020.0004
Override
Cache load0.00210.2382710.0000
Sytem overhead
Fetch class attribute can translate value0.00110.124330.0004
Fetch class attribute name0.00120.1337110.0001
XML
Image XML parsing0.00140.160630.0005
class_abstraction
Instantiating content class attribute0.00000.0037160.0000
General
dbfile0.00100.1156290.0000
String conversion0.00000.001140.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 46
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs