From Joomla! Documentation

Revision as of 04:15, 22 December 2011 by Peerke (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What is a package?

A package is a extension that is used to install multiple extensions in one go. This is used if you have for example a component and a module that are depending on each other. Combining them in a package will let the user install and uninstall both extensions in one go. This can be used in Joomla 1.6 and higher.

How do I create a package?

A package extension is created by zipping all zip files of the extensions together with a xml manifest file. If you have a helloworld component and module you make the following tree in your zipfile:

 -- pkg_helloworld.xml
 -- packages <dir>

The pkg_helloworld.xml could have the following contents:

<?xml version="1.0" encoding="UTF-8" ?>
<extension type="package" version="1.6">
<name>Hello World Package</name>
<packager>Hello World Package Team</packager>
<description>Example package to combine multiple extensions</description>
<files folder="packages">
<file type="component" id="com_helloworld" ></file>
<file type="module" id="mod_helloworld" client="site"></file>

When you zip this and try to install it, you will see that every extension will be installed. Also the package will be visible in the extension list to uninstall all the extension of this package.