Page 1 of 1

Best process for developing extensions (components, modules, plugins)?

Posted: Thu Jan 17, 2008 3:18 pm
by samtherobot
I've been trying to figure out what the best process is for developing extensions and wondered if anyone had any suggestions.

So far how I've seemed to work it is that I have a testing install of Joomla.  I develop my extension inside that install of Joomla.  But then from that point I'm not sure where to go.  If I want to install it on any other projects then I have to create a new install file each time.  Or I just have to manually install it.

Ideally I'm looking to see if there is an easy way to make changes then have an installer file created.

Any thoughts?  What is your process?

Re: Best process for developing extensions (components, modules, plugins)?

Posted: Thu Jan 17, 2008 4:05 pm
by ianmac
The easiest way to do it is to keep the install file somewhat general...

This is easy with 1.5's new folder tag, where you can specify that a folder be copied instead of just individual files.

Ian

Re: Best process for developing extensions (components, modules, plugins)?

Posted: Mon Feb 04, 2008 9:02 am
by julienV
Hi,

Ian, could you give an example on how to use this "folder" tag ? I know we can know specify a folder where to retrieve a list of specified files, but we still have to specify each file in the tag. You seem to say that we can just specify a folder... If this is the cse, will it import the whole subtree too ?

Maybe update the wiki page here: http://dev.joomla.org/component/option, ... stallfile/

Thanks in advance,
Julien

Re: Best process for developing extensions (components, modules, plugins)?

Posted: Mon Feb 04, 2008 1:56 pm
by julienV
Autoreply, after browsing the API code and testing myself ;)..

the "folder" tag can be used like this:

Code: Select all

<!-- Site Main File Copy Section -->
   <files>
      <filename>index.html</filename>
      <filename>test.php</filename>
<folder>controllers</folder>
<folder>models</folder>
<folder>tables</folder>
<folder>views</folder>
   </files>
</files>


and yes, it is recursive, so all content of controllers, models, etc... folders will be copied too.
Maybe it would be worth updating the wiki !