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

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
User avatar
samtherobot
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Dec 05, 2005 11:57 pm
Location: London, Ontario
Contact:

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

Post by samtherobot » Thu Jan 17, 2008 3:18 pm

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?

User avatar
ianmac
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 237
Joined: Sat Sep 24, 2005 11:01 pm
Location: Toronto, Canada

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

Post by ianmac » Thu Jan 17, 2008 4:05 pm

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
Help test my Component XML Generator Tool!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,1997/Itemid,35/
All feedback appreciated!

User avatar
julienV
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Oct 11, 2007 12:11 pm
Location: france
Contact:

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

Post by julienV » Mon Feb 04, 2008 9:02 am

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
Joomleague developement team
Joomla Tracks lone developper

User avatar
julienV
Joomla! Apprentice
Joomla! Apprentice
Posts: 9
Joined: Thu Oct 11, 2007 12:11 pm
Location: france
Contact:

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

Post by julienV » Mon Feb 04, 2008 1:56 pm

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 !
Joomleague developement team
Joomla Tracks lone developper


Post Reply