extensions to extend extensions - Am I on the right way?

Author Message

Pascal Specht

Thursday 28 June 2007 5:47:58 am

Hello,

I want to modify the behavior of the ezwebin extension. For example, I don't want the image upload in the user/register dialog, and I don't like some of the translations, which I want to replace by different ones...

I would like to avoid putting my modifications inside this extension, because I fell it will make it too difficult to keep up with further releases.

I thought that the least intrusive and best way would be to write another extension that also for example defines a user/register.tpl, its translations etc..., and that replaces those of the ezwebin extension.

I don't know if it is possible to 'extend' an extension through another extension this way.

Any hints or tips would be great!

Thanks in advance,
Pascal

André R.

Thursday 28 June 2007 6:54:44 am

yes it is, but you have to make sure that 'your_extension' is before ezwebin in the ActiveExtensions list in override/site.ini

But for overriding the design elements you should have a 'your_design' and define it as the primary design in your frontpage siteaccesses site.ini.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal Specht

Thursday 28 June 2007 7:20:40 am

Hi André,

your advise to modify the include order of the extensions in the settings/override/site.ini.append.php worked immediately and made my day!

Thanks a lot,

Pascal

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

Main resources:

Total runtime0.4988 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2891152.6563
Module start 'layout' 0.00660.0028 741.945339.4922
Module start 'content' 0.00940.4879 781.4375541.7109
Module end 'content' 0.49730.0015 1,323.148412.1094
Script end 0.4988  1,335.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.6886160.0002
Check MTime0.00140.2807160.0001
Mysql Total
Database connection0.00130.254210.0013
Mysqli_queries0.444689.1210570.0078
Looping result0.00060.1207550.0000
Template Total0.466093.420.2330
Template load0.00190.375320.0009
Template processing0.464193.034020.2320
Template load and register function0.00010.019910.0001
states
state_id_array0.00090.170810.0009
state_identifier_array0.00100.206320.0005
Override
Cache load0.00150.3076220.0001
Sytem overhead
Fetch class attribute can translate value0.00070.149220.0004
Fetch class attribute name0.00150.301150.0003
XML
Image XML parsing0.00110.220520.0006
class_abstraction
Instantiating content class attribute0.00000.002460.0000
General
dbfile0.00170.3443230.0001
String conversion0.00000.002040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs