Difference between revisions of "Components:xml installfile"
From Joomla! Documentation
Line 1: | Line 1: | ||
<source lang="xml"> | <source lang="xml"> | ||
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
+ | <!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/component-install.dtd"> | ||
<install type="component" version="1.5.0"> | <install type="component" version="1.5.0"> | ||
− | <name> | + | <!-- The extension commercial name: make it different form others at JED http://extensions.joomla.org/--> |
− | <!-- The following elements are optional and free of formatting | + | <name>Hello World</name> |
− | <creationDate>2007 | + | <!-- The following elements are optional and free of formatting constraints --> |
+ | <!-- Original creation date. Recommended: DD-MM-YYYY --> | ||
+ | <creationDate>17-01-2007</creationDate> | ||
<author>John Doe</author> | <author>John Doe</author> | ||
<authorEmail>john.doe@example.org</authorEmail> | <authorEmail>john.doe@example.org</authorEmail> | ||
<authorUrl>http://www.example.org</authorUrl> | <authorUrl>http://www.example.org</authorUrl> | ||
<copyright>Copyright Info</copyright> | <copyright>Copyright Info</copyright> | ||
− | <license>License Info</license> | + | <license>License Info with link</license> |
<!-- The version string is recorded in the components table --> | <!-- The version string is recorded in the components table --> | ||
− | <version> | + | <version>1.0.1</version> |
+ | <!-- The date for the actual version release --> | ||
+ | <releaseDate>14-05-2010</releaseDate> | ||
+ | <!-- Type of release: Bug fix, Security Fix, Minor update, Major update --> | ||
+ | <releaseType>Major update</releaseType> | ||
+ | <downloadUrl>http://www.example.org/downloads/myjoomlaextensions/</downloadUrl> | ||
<!-- The description is optional and defaults to the name --> | <!-- The description is optional and defaults to the name --> | ||
<description>Description of the component ...</description> | <description>Description of the component ...</description> | ||
Line 17: | Line 25: | ||
<!-- Custom Install Script to execute --> | <!-- Custom Install Script to execute --> | ||
<!-- Note: This will be copied from the root of the installation package to the administrator directory automatically --> | <!-- Note: This will be copied from the root of the installation package to the administrator directory automatically --> | ||
− | <installfile>install. | + | <installfile>install.helloworld.php</installfile> |
<!-- Custom Uninstall Script to execute --> | <!-- Custom Uninstall Script to execute --> | ||
<!-- Note: This will be copied from the root of the installation package to the administrator directory automatically --> | <!-- Note: This will be copied from the root of the installation package to the administrator directory automatically --> | ||
− | <uninstallfile>uninstall. | + | <uninstallfile>uninstall.helloworld.php</uninstallfile> |
<!-- Install Database Section --> | <!-- Install Database Section --> | ||
Line 42: | Line 50: | ||
<files> | <files> | ||
<filename>index.html</filename> | <filename>index.html</filename> | ||
− | <filename> | + | <filename>helloworld.php</filename> |
<folder>views</folder> | <folder>views</folder> | ||
</files> | </files> | ||
Line 54: | Line 62: | ||
<!-- Site Main Media File Copy Section --> | <!-- Site Main Media File Copy Section --> | ||
− | <media destination=" | + | <media destination="com_helloworld"> |
<filename>image.png</filename> | <filename>image.png</filename> | ||
<filename>flash.swf</filename> | <filename>flash.swf</filename> | ||
Line 62: | Line 70: | ||
<!-- Administration Menu Section --> | <!-- Administration Menu Section --> | ||
− | <menu img="components/ | + | <!-- Name to display at the component menu. Should be the same as the extension commercial name --> |
+ | <menu img="components/com_helloworld/images/helloworld_icon.png">Hello World</menu> | ||
<submenu> | <submenu> | ||
<!-- Note that all & must be escaped to & for the file to be valid XML and be parsed by the installer --> | <!-- Note that all & must be escaped to & for the file to be valid XML and be parsed by the installer --> | ||
− | <menu link="option=com_helloworld& | + | <menu link="option=com_helloworld&controller=config">Configuration</menu> |
<!-- Instead of link you can specify individual link attributes --> | <!-- Instead of link you can specify individual link attributes --> | ||
<menu img="icon" task="hello" controller="z" view="a" layout="b" sub="c">Hello Again!</menu> | <menu img="icon" task="hello" controller="z" view="a" layout="b" sub="c">Hello Again!</menu> | ||
Line 77: | Line 86: | ||
<files folder="admin"> | <files folder="admin"> | ||
<filename>index.html</filename> | <filename>index.html</filename> | ||
− | <filename>admin. | + | <filename>admin.helloworld.php</filename> |
</files> | </files> | ||
<!-- Administration Language File Copy Section --> | <!-- Administration Language File Copy Section --> | ||
<languages folder="admin"> | <languages folder="admin"> | ||
− | <language tag="en-GB">en-GB. | + | <language tag="en-GB">en-GB.com_helloworld.ini</language> |
− | <language tag="de-DE">de-DE. | + | <language tag="de-DE">de-DE.com_helloworld.ini</language> |
− | <language tag="nl-NL">nl-NL. | + | <language tag="nl-NL">nl-NL.com_helloworld.ini</language> |
</languages> | </languages> | ||
<!-- Administration Main Media File Copy Section --> | <!-- Administration Main Media File Copy Section --> | ||
− | <media folder="admin" destination=" | + | <media folder="admin" destination="com_helloworld"> |
<filename>admin-image.png</filename> | <filename>admin-image.png</filename> | ||
<filename>admin-flash.swf</filename> | <filename>admin-flash.swf</filename> |
Revision as of 18:46, 14 May 2010
The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install SYSTEM "http://dev.joomla.org/xml/1.5/component-install.dtd">
<install type="component" version="1.5.0">
<!-- The extension commercial name: make it different form others at JED http://extensions.joomla.org/-->
<name>Hello World</name>
<!-- The following elements are optional and free of formatting constraints -->
<!-- Original creation date. Recommended: DD-MM-YYYY -->
<creationDate>17-01-2007</creationDate>
<author>John Doe</author>
<authorEmail>john.doe@example.org</authorEmail>
<authorUrl>http://www.example.org</authorUrl>
<copyright>Copyright Info</copyright>
<license>License Info with link</license>
<!-- The version string is recorded in the components table -->
<version>1.0.1</version>
<!-- The date for the actual version release -->
<releaseDate>14-05-2010</releaseDate>
<!-- Type of release: Bug fix, Security Fix, Minor update, Major update -->
<releaseType>Major update</releaseType>
<downloadUrl>http://www.example.org/downloads/myjoomlaextensions/</downloadUrl>
<!-- The description is optional and defaults to the name -->
<description>Description of the component ...</description>
<!-- Custom Install Script to execute -->
<!-- Note: This will be copied from the root of the installation package to the administrator directory automatically -->
<installfile>install.helloworld.php</installfile>
<!-- Custom Uninstall Script to execute -->
<!-- Note: This will be copied from the root of the installation package to the administrator directory automatically -->
<uninstallfile>uninstall.helloworld.php</uninstallfile>
<!-- Install Database Section -->
<install>
<sql>
<file driver="mysql" charset="utf8">install.mysql.utf8.sql</file>
<file driver="mysql">install.mysql.nonutf8.sql</file>
</sql>
</install>
<!-- Uninstall Database Section -->
<uninstall>
<sql>
<file driver="mysql" charset="utf8">uninstall.mysql.utf8.sql</file>
<file driver="mysql">uninstall.mysql.nonutf8.sql</file>
</sql>
</uninstall>
<!-- Site Main File Copy Section -->
<files>
<filename>index.html</filename>
<filename>helloworld.php</filename>
<folder>views</folder>
</files>
<!-- Site Main Language File Copy Section -->
<languages>
<language tag="en-GB">en-GB.com_test.ini</language>
<language tag="de-DE">de-DE.com_test.ini</language>
<language tag="nl-NL">nl-NL.com_test.ini</language>
</languages>
<!-- Site Main Media File Copy Section -->
<media destination="com_helloworld">
<filename>image.png</filename>
<filename>flash.swf</filename>
</media>
<administration>
<!-- Administration Menu Section -->
<!-- Name to display at the component menu. Should be the same as the extension commercial name -->
<menu img="components/com_helloworld/images/helloworld_icon.png">Hello World</menu>
<submenu>
<!-- Note that all & must be escaped to & for the file to be valid XML and be parsed by the installer -->
<menu link="option=com_helloworld&controller=config">Configuration</menu>
<!-- Instead of link you can specify individual link attributes -->
<menu img="icon" task="hello" controller="z" view="a" layout="b" sub="c">Hello Again!</menu>
<menu view="test" layout="foo">Testing Foo Layout</menu>
</submenu>
<!-- Administration Main File Copy Section -->
<!-- Note the folder attribute: This attribute describes the folder
to copy FROM in the package to install therefore files copied
in this section are copied from /admin/ in the package -->
<files folder="admin">
<filename>index.html</filename>
<filename>admin.helloworld.php</filename>
</files>
<!-- Administration Language File Copy Section -->
<languages folder="admin">
<language tag="en-GB">en-GB.com_helloworld.ini</language>
<language tag="de-DE">de-DE.com_helloworld.ini</language>
<language tag="nl-NL">nl-NL.com_helloworld.ini</language>
</languages>
<!-- Administration Main Media File Copy Section -->
<media folder="admin" destination="com_helloworld">
<filename>admin-image.png</filename>
<filename>admin-flash.swf</filename>
</media>
</administration>
</install>