An override question

Author Message

Kristoffer Karlsson

Tuesday 26 June 2007 1:52:08 am

If I create an override template for full.tpl, I get to select which class, section and/or node it will override.

But if I want to create an override for vertically_listed_sub_items.tpl I do not get to select anything. How do I do to create an override template for a specific class, for example vertically_listed_articles or vertically_listed_products?

_____________________________________
Blog: http://www.kristofferkarlsson.com
Website: http://www.spelkanalen.com

André R.

Tuesday 26 June 2007 2:29:11 am

The Vertical listed sub items is a override in it self:

[vertically_listed_sub_items]
Source=content/view/embed.tpl
MatchFile=embed/vertically_listed_sub_items.tpl
Subdir=templates
Match[classification]=vertically_listed_sub_items

I was also about to give a link to the override conditions, but seems like content/view is missing..
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/template_override_conditions

So I have sent a message to the doc team about it.

But if you want to override the template always (for all classes and so on)
You can place a copy of it in your own design (design extension) with a design name that has higher priority then ezwebin.
in your siteaccess's site.ini:

[DesignSettings]
SiteDesign=my_design
AdditionalSiteDesignList[]
AdditionalSiteDesignList[]=ezwebin
AdditionalSiteDesignList[]=base

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Svitlana Shatokhina

Monday 02 July 2007 8:18:11 am

Hi,

The missing documentation is now added here:
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/template_override_conditions/content_view_tpl

Best regards!
Sveta

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 31 2025 01:28:13
Script start
Timing: Jan 31 2025 01:28:13
Module start 'layout'
Timing: Jan 31 2025 01:28:13
Module start 'content'
Timing: Jan 31 2025 01:28:13
Module end 'content'
Timing: Jan 31 2025 01:28:13
Script end

Main resources:

Total runtime0.0214 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.1250151.2109
Module start 'layout' 0.00430.0038 739.3359220.6875
Module start 'content' 0.00810.0118 960.0234997.8984
Module end 'content' 0.01990.0015 1,957.921933.9922
Script end 0.0214  1,991.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002411.2392140.0002
Check MTime0.00104.8577140.0001
Mysql Total
Database connection0.00063.025510.0006
Mysqli_queries0.002310.552430.0008
Looping result0.00000.093510.0000
Template Total0.00115.010.0011
Template load0.00093.978310.0009
Template processing0.00020.952810.0002
Override
Cache load0.00062.595810.0006
General
dbfile0.00041.935780.0001
String conversion0.00000.035640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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