Table of Contents

Package format

Packages are zip files containing all the files with an XML package description and install and uninstall .sql files with the SQL statements to setup and remove the database tables.

The information below is for reference only. If you want more specific information check the following articles:

Package description file

The package description file contains the following tags :

The start urls are used in the sitemanager and other applications to present user friendly links to the application installed by the package.

Sample Package description file:

<?xml version="1.0"?>
  <package>
  <name>package_builder</name>
  <version>1.15</version>
  <description><![CDATA[<H1>Wizard to create pas packages</H1>
 
  <h2>Introduction</h2>
This package will create new packages and packages based the installed package, to create a new version of the installed package.
]]></description>
  <date_created>2007-02-03</date_created>
  <time_created>07:04:02</time_created>
  <depname>contentadmin-1.7</depname>	
  <suggest_package>design_builder-1.4</suggest_package>    
  <conflict_package></conflict_package>    
<files>
adminpackagelist.sys.php
class/WizardZipFiles.class.php
class/ZibLib.class.php
docs/package_builder/index.html
docs/package_builder/package_builder_files/ajax.js
docs/package_builder/package_builder_files/tw-sack.js
events/wizard.enterCommands.inc.php
events/wizard.selectDb.inc.php
includes/adminmenucreatepackage.inc.php
report/wizard.downloadPkg.report.xml
report/wizard.selectPackage.report.xml
wizardCreatePackage.sys.php
wizardSelectDb.sys.php
wizardSelectFiles.sys.php
</files>
<sqlinstall></sqlinstall>
<sqlremove></sqlremove>
<commandinstall>
mkdir package_created
</commandinstall>
<commandupload></commandupload>
<commandremove></commandremove>
<htmlupload>
none
</htmlupload>
<phpupload>
none
</phpupload>
<parameter></parameter>
<starturl>
wizardCreatePackage.sys.php
</starturl>
<starturllabel>
Package builder
</starturllabel>
<startadminurl></startadminurl>
<startadminurllabel></startadminurllabel>
</package>

SQL statement for database setup

The sqlremove and sqlinstall tags are optional. If you don't provide file names it will automatically look for files with the following convention : <dbtype>_db_install.sql in the root directory of your package. For example for a package that supports 3 databases you will have :