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