How to override admin pagelayout.tpl for my extension only?

Author Message

Rainer Krauss

Tuesday 18 August 2009 3:01:26 am

Dear all,

we wrote an extension that's getting used in the admin siteaccess of our installation. Now I'm to alter the layout: the content area is not wide enough for the content to display properly.
How could I give the content area in the standard ezflow site admin design more space? - is making an override for the admin pagelayout, that does not include the navigation bars left and right, a good solution?
If so, how may I override the pagelayout.tpl for my extension only?

Thanks in advance for your reply!

Best wishes,
Rainer

Rainer Krauss

Tuesday 18 August 2009 3:32:42 am

Thanks to a workmate for explaining.

To override pagelayout.tpl for a custom extension, just add something like

$Result['pagelayout'] = 'design:pagelayout_abo.tpl';

to the extensions' overview.php file.

Best,
Rainer

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 11:34:08
Script start
Timing: Jan 18 2025 11:34:08
Module start 'layout'
Timing: Jan 18 2025 11:34:08
Module start 'content'
Timing: Jan 18 2025 11:34:09
Module end 'content'
Timing: Jan 18 2025 11:34:09
Script end

Main resources:

Total runtime0.8380 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 589.3047152.6563
Module start 'layout' 0.00560.0107 741.960939.5078
Module start 'content' 0.01630.8202 781.4688427.9766
Module end 'content' 0.83650.0014 1,209.44538.0938
Script end 0.8380  1,217.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4506160.0002
Check MTime0.00160.1898160.0001
Mysql Total
Database connection0.00070.089410.0007
Mysqli_queries0.786793.8834520.0151
Looping result0.00060.0664500.0000
Template Total0.792094.520.3960
Template load0.00230.274620.0012
Template processing0.789794.232620.3948
Template load and register function0.00030.032610.0003
states
state_id_array0.00180.214110.0018
state_identifier_array0.00190.228220.0010
Override
Cache load0.00180.2089170.0001
Sytem overhead
Fetch class attribute can translate value0.00050.064710.0005
Fetch class attribute name0.00120.141920.0006
XML
Image XML parsing0.00010.015410.0001
class_abstraction
Instantiating content class attribute0.00000.000720.0000
General
dbfile0.00070.0858100.0001
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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 6

Time used to render debug report: 0.0001 secs