Pages

Tuesday, February 10, 2009

Easier XML manifest creation for Joomla extensions

When creating XML files for Joomla extensions, especially components, most of us usually list all the files that the component needs. Just realised that this is not required. If you put just the folder names, Joomla will take all the files inside those folders.

Here's an example

<filename>views/series/metadata.xml</filename>
<filename>views/series/index.html</filename>
<filename>views/series/view.feed.php</filename>
<filename>views/series/view.html.php</filename>
<filename>views/series/tmpl/index.html</filename>
<filename>views/series/tmpl/default.xml</filename>
<filename>views/series/tmpl/default.php</filename>
<filename>views/invite/view.raw.php</filename>
<filename>views/invite/tmpl/form.php</filename>

can be just replaced by

<folder>views</folder>

This will simple include all the files from my views folder. This is really helpful when you're creating a huge component or template.

Goodbye long XML files!!

About me

Hi,

Ashwin here. I'll be randomly blogging about stuff that I like. Now, one thing that I don't like is that Firefox's dictionary does not know the word blogging.