Block Template Override

Author Message

Frederik Krautwald

Wednesday 08 December 2010 7:38:44 am

In the eZ Flow documentation here http://doc.ez.no/Extensions/eZ-Flow/eZ-Flow-2.2/Configuration/Configuring-the-eZ-Flow-block-system/Defining-block-types it kind of fails to mention that the block template override definition should be put in an override.ini file.

For example go to location and open file settings > siteaccess > ezflow_site >override.ini.append.php and add your block override settings

[your_block]
Source=block/view/view.tpl
MatchFile=block/your_block.tpl
Subdir=templates
Match[type]=YourBlock
Match[view]=your_block

Frederik Krautwald
Executive Creative Director

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

Main resources:

Total runtime0.3448 sec
Peak memory usage4,096.0000 KB
Database Queries49

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 589.0547152.6250
Module start 'layout' 0.00980.0029 741.679739.4531
Module start 'content' 0.01270.3306 781.1328474.4844
Module end 'content' 0.34330.0015 1,255.61728.1641
Script end 0.3448  1,263.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00531.5259160.0003
Check MTime0.00170.4989160.0001
Mysql Total
Database connection0.00170.497110.0017
Mysqli_queries0.168848.9532490.0034
Looping result0.00060.1626470.0000
Template Total0.301687.520.1508
Template load0.00952.748420.0047
Template processing0.292184.722620.1461
Template load and register function0.00030.082310.0003
states
state_id_array0.00110.306510.0011
state_identifier_array0.00090.274420.0005
Override
Cache load0.00230.6573160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.188810.0007
Fetch class attribute name0.00080.217820.0004
XML
Image XML parsing0.02798.096810.0279
class_abstraction
Instantiating content class attribute0.00000.001120.0000
General
dbfile0.03219.2984160.0020
String conversion0.00000.002640.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 8

Time used to render debug report: 0.0002 secs