Overriding base module views

Author Message

H-Works Agency

Thursday 13 January 2011 2:58:51 am

Hello,

How can we override a module view in a custom extension module ?

For example "shop/basket" is part of ezpublish default views. The view's brain is kernel/shop/basket.php.

What if i want to reuse the path "shop/basket" but this time in a custom module located in the extension folder. Like this :

/extension/my_ext/modules/shop/basket.php

How can this be achieved ? For now i can't obtain the override : Even after declaring everything ezp still uses default view and no override happens.

Thanx in advance.

EZP is Great

H-Works Agency

Thursday 13 January 2011 4:00:19 am

Sorry - already addressed : http://share.ez.no/forums/developer/kernel-view-override

EZP is Great

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 02:19:56
Script start
Timing: Jan 18 2025 02:19:56
Module start 'layout'
Timing: Jan 18 2025 02:19:56
Module start 'content'
Timing: Jan 18 2025 02:19:56
Module end 'content'
Timing: Jan 18 2025 02:19:56
Script end

Main resources:

Total runtime0.6703 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.0041 589.0469152.6250
Module start 'layout' 0.00410.0027 741.671939.4531
Module start 'content' 0.00680.6620 781.1250484.4922
Module end 'content' 0.66880.0015 1,265.61728.1641
Script end 0.6702  1,273.7813 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00300.4448160.0002
Check MTime0.00130.1868160.0001
Mysql Total
Database connection0.00060.084610.0006
Mysqli_queries0.630194.0067520.0121
Looping result0.00040.0558500.0000
Template Total0.646796.520.3233
Template load0.00190.288920.0010
Template processing0.644796.187320.3224
Template load and register function0.00010.016010.0001
states
state_id_array0.00090.132610.0009
state_identifier_array0.00060.091620.0003
Override
Cache load0.00160.2344140.0001
Sytem overhead
Fetch class attribute can translate value0.00070.108610.0007
Fetch class attribute name0.00100.145830.0003
XML
Image XML parsing0.00040.059810.0004
class_abstraction
Instantiating content class attribute0.00000.001740.0000
General
dbfile0.00070.1058170.0000
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
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
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs