To override a custom zonelayout

Author Message

Romeo Antony

Monday 12 July 2010 5:31:09 am

Do anyone know how to overide the custom zonelatout.tpl

is this done the same was as we override templates?

Nicolas Pastorino

Monday 12 July 2010 10:28:52 am

Hi Romeo,

After having defined your new zone layout in an override of zone.ini.append.php, you "just" need to write your custom zone template (copy and modify a standard eZ Flow one). Here is how the zone configuration could look :

[General]
AllowedTypes[]=BigPic_and_2columns

[BigPic_and_2columns]
ZoneTypeName=Big picture at the top, 2 columns below
Zones[]=big_picture
Zones[]=left_column
Zones[]=right_column
ZoneName[big_picture]=Big Picture
ZoneName[left_column]=Left Column
ZoneName[right_column]=Right Column
ZoneThumbnail=BigPic_and_2columns.png
Template=BigPic_and_2columns.tpl
AvailableForClasses[]=frontpage

Let us know,
Cheers,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

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 15:52:58
Script start
Timing: Jan 18 2025 15:52:58
Module start 'layout'
Timing: Jan 18 2025 15:52:58
Module start 'content'
Timing: Jan 18 2025 15:52:59
Module end 'content'
Timing: Jan 18 2025 15:52:59
Script end

Main resources:

Total runtime0.8277 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0061 587.9141152.6250
Module start 'layout' 0.00610.0028 740.539139.4453
Module start 'content' 0.00890.8176 779.9844531.2266
Module end 'content' 0.82650.0012 1,311.21098.1641
Script end 0.8277  1,319.3750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3894160.0002
Check MTime0.00130.1605160.0001
Mysql Total
Database connection0.00110.131810.0011
Mysqli_queries0.775893.7179540.0144
Looping result0.00050.0555520.0000
Template Total0.786995.120.3934
Template load0.00210.248120.0010
Template processing0.784894.809820.3924
Template load and register function0.00010.015910.0001
states
state_id_array0.00430.518910.0043
state_identifier_array0.00160.191520.0008
Override
Cache load0.00160.1991130.0001
Sytem overhead
Fetch class attribute can translate value0.00060.075720.0003
Fetch class attribute name0.00150.184340.0004
XML
Image XML parsing0.00090.114820.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00620.7487220.0003
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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs