Forums / Developer / Multiple modules in one extension?

Multiple modules in one extension?

Author Message

Clemens T

Monday 31 October 2005 5:39:32 pm

Heya all,
I'd like to add multiple modules into 1 extension, cause I have about 10 extensions now, but I'd like to make them 1. What's the way to go?

I got this far:

Copy all the /modules and /design to the new extension dir:

/Extension v2/

now in the
/Extension v2/settings/

I created a file design.ini.append.php
and added:

[ExtensionSettings]
DesignExtensions[]=oldExtensionOne
DesignExtensions[]=oldExtensionTwo
etc...

I created a file module.ini.append.php

[ModuleSettings]
ExtensionRepositories[]=oldExtensionOne
ExtensionRepositories[]=oldExtensionTwo
etc...

Now, what else do I need to do. If I fetch the contents of a template, what should the new line look like, I guess the:

...design:oldExtensionOne/list.tpl'...

has to be updated as well? Am I correct?
Thanks,
Clemens

Clemens T

Monday 31 October 2005 6:09:25 pm

never mind.. got it
use:
ModuleList[]...
in module.ini.append.php (of your v2 Extension)

Xavier Dutoit

Tuesday 01 November 2005 12:01:47 am

Thanks for the tip !

http://www.sydesy.com

Kristof Coomans

Tuesday 01 November 2005 2:11:12 am

Hi Clemens,

I think you misunderstood some of the INI settings. Those you've mentioned are related to extensions, not to modules. So you'll need to specify your extension name and not the module names.

For <i>design.ini.append</i>:

[ExtensionSettings]
DesignExtensions[]=yourextensionname

So in your case, it will be "Extension v2".

The same for <i>module.ini.append</i>:

[ModuleSettings]
ExtensionRepositories[]=yourextensionname

If you want to fetch a template, you don't need to specify an extension name. You will only need to specify the location of the template inside the site design's templates directory. So if your template is located at <i>extension/extension v2/design/standard/templates/oldExtensionOne/list.tpl</i>, then indeed you will need the code:

...design:oldExtensionOne/list.tpl...

I'm not sure, but I think <i>ModuleList[]</i> in <i>module.ini.append</i> is only used to avoid URL alias overriding. Your custom modules will already be available without those settings, but ofcourse it's a good idea to list them there.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Clemens T

Tuesday 01 November 2005 3:58:00 am

Yeah, that's what I have, right now. Thanks Kristof, got it.. yesterday @ 03:40 AM hehe.

Greets,
Clemens

eZ debug

Timing: Jan 18 2025 21:09:03
Script start
Timing: Jan 18 2025 21:09:03
Module start 'content'
Timing: Jan 18 2025 21:09:05
Module end 'content'
Timing: Jan 18 2025 21:09:05
Script end

Main resources:

Total runtime2.5316 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 590.9141180.8281
Module start 'content' 0.00732.2363 771.7422613.9453
Module end 'content' 2.24360.2879 1,385.6875337.3672
Script end 2.5315  1,723.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.1698210.0002
Check MTime0.00150.0598210.0001
Mysql Total
Database connection0.00070.027810.0007
Mysqli_queries2.434396.15662020.0121
Looping result0.00400.15912000.0000
Template Total2.492798.521.2464
Template load0.00210.081220.0010
Template processing2.490798.383721.2453
Template load and register function0.00020.007110.0002
states
state_id_array0.00300.116710.0030
state_identifier_array0.00290.115420.0015
Override
Cache load0.00180.0704440.0000
Sytem overhead
Fetch class attribute can translate value0.00230.089940.0006
Fetch class attribute name0.00180.072870.0003
XML
Image XML parsing0.00150.061140.0004
class_abstraction
Instantiating content class attribute0.00000.000770.0000
General
dbfile0.00560.2222330.0002
String conversion0.00000.000330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs