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

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 31 2025 04:17:16
Script start
Timing: Jan 31 2025 04:17:16
Module start 'layout'
Timing: Jan 31 2025 04:17:16
Module start 'content'
Timing: Jan 31 2025 04:17:16
Module end 'content'
Timing: Jan 31 2025 04:17:16
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1406151.2109
Module start 'layout' 0.00520.0025 739.351636.6641
Module start 'content' 0.00770.0054 776.015694.2813
Module end 'content' 0.01320.0014 870.296933.9922
Script end 0.0145  904.2891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002416.7431140.0002
Check MTime0.00117.7765140.0001
Mysql Total
Database connection0.00096.062810.0009
Mysqli_queries0.002215.103030.0007
Looping result0.00000.253710.0000
Template Total0.00117.410.0011
Template load0.00085.835310.0008
Template processing0.00021.496110.0002
Override
Cache load0.00064.270510.0006
General
dbfile0.00149.280880.0002
String conversion0.00000.062240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs