Components:xml installfile

From Joomla! Documentation

Revision as of 16:55, 17 February 2009 by Mike dowler (Talk | contribs)

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
<?xml version="1.0" encoding="utf-8"?>
<install type="component" version="1.5.0">
	<!-- The following elements are optional and free of formatting conttraints -->
	<creationDate>2007 01 17</creationDate>
	<author>John Doe</author>
	<copyright>Copyright Info</copyright>
	<license>License Info</license>
	<!--  The version string is recorded in the components table -->
	<version>Component Version String</version>
	<!-- The description is optional and defaults to the name -->
	<description>Description of the component ...</description>
	<!-- Custom Install Script to execute -->
	<!-- Custom Uninstall Script to execute -->
	<!-- Install Database Section -->
			<file driver="mysql" charset="utf8">install.mysql.utf8.sql</file>
			<file driver="mysql">install.mysql.nonutf8.sql</file>
	<!-- Uninstall Database Section -->
			<file driver="mysql" charset="utf8">uninstall.mysql.utf8.sql</file>
			<file driver="mysql">uninstall.mysql.nonutf8.sql</file>
	<!-- Site Main File Copy Section -->
	<!-- Site Main Language File Copy Section -->
		<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>
	<!-- Site Main Media File Copy Section -->
	<media destination="com_test">
		<!-- Administration Menu Section -->
		<menu img="components/com_test/assets/test-16.png">EventList</menu>
			<!-- Note that all & must be escaped to &amp; for the file to be valid XML and be parsed by the installer -->
			<menu link="option=com_helloworld&amp;task=hello&amp;who=world">Hello World!</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>
		<!-- 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">
		<!-- Administration Language File Copy Section -->
		<languages folder="admin">
			<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>
		<!-- Administration Main Media File Copy Section -->
		<media folder="admin" destination="com_test">