Override pagelayout for extension

Author Message

Claudia Kosny

Friday 24 November 2006 4:32:07 am

Hi there

I want to override the pagelayout for all views within a certain extension.

I don't want to use the layout/set/... functionality as this can cause quite a mess with the links.

I read once that you could set some keys in the module.php to use in the override.ini but I could not find this again.

Does anyone know a way how to do that?

EDIT:
found it: http://ez.no/community/forum/general/override_a_page_layout_in_a_module_section/re_override_a_page_layout_in_a_module_section__1
/EDIT

Claudia

Jacobo Quiles

Thursday 30 November 2006 2:04:34 am

Hi Claudia, i am not sure if i misundrestood your question but i think it's a typical override for the pagelayout template.

Just create an override of pagelayout in your extension/yourextensionname/design/yourdesignname/templates

No need to create an override if you respect the path structure and the filename.

Cheers.

Microblau SL
http://www.microblau.net

Claudia Kosny

Thursday 30 November 2006 2:27:46 am

Hi Jacobo

No, this way the pagelayout would be overwritten for the entire siteacess where the extension is activated. I just wanted to have it for certain views with my extension. As these views are not related to a node or a section I would not know how to do it with the existing override conditions.

But using setkeys as described in the linked article I can specify the condition that the override.ini looks for, so this works great.

Have a nice day

Claudia

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 30 2025 22:27:31
Script start
Timing: Jan 30 2025 22:27:31
Module start 'layout'
Timing: Jan 30 2025 22:27:31
Module start 'content'
Timing: Jan 30 2025 22:27:32
Module end 'content'
Timing: Jan 30 2025 22:27:32
Script end

Main resources:

Total runtime1.1628 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.1563151.2109
Module start 'layout' 0.00670.0046 739.3672220.6875
Module start 'content' 0.01131.1507 960.05474,439.4141
Module end 'content' 1.16200.0008 5,399.468811.8438
Script end 1.1628  5,411.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3772160.0003
Check MTime0.00130.1139160.0001
Mysql Total
Database connection0.00080.073010.0008
Mysqli_queries1.081893.0321570.0190
Looping result0.00050.0387550.0000
Template Total1.098994.520.5495
Template load0.00200.171920.0010
Template processing1.096994.332120.5484
Template load and register function0.00150.128610.0015
states
state_id_array0.00670.577310.0067
state_identifier_array0.00280.237920.0014
Override
Cache load0.00170.1459240.0001
Sytem overhead
Fetch class attribute can translate value0.00140.116420.0007
Fetch class attribute name0.00230.194140.0006
XML
Image XML parsing0.00060.047520.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00500.4262170.0003
String conversion0.00000.001040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs