How to Create a Component in the Tables Folder in Joomla 1.5
- 1). Open a text editor on your computer. If you are using Windows, open the “Notepad.” If you are using Mac OSX, open the “Texteditor.”
- 2). Copy and paste this code into your editor:
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="1.6.0" method="upgrade">
<name>TEXT</name>
<!-- The following elements are optional and free of formatting constraints -->
<creationDate>DATE</creationDate>
<author>NAME</author>
<authorEmail>EMAIL ADDRESS</authorEmail>
<authorUrl>AUTHOR EMAIL</authorUrl>
<copyright>Copyright Info</copyright>
<license>License Info</license>
<!-- The version string is recorded in the components table -->
<version>0.0.1</version>
<!-- The description is optional and defaults to the name -->
<description>Description of the TEXT component ...</description>
<update> <!-- Runs on update; New in 1.6 -->
<schemas>
<schemapath type="mysql">sql/updates/mysql</schemapath>
</schemas>
</update>
<!-- Site 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 /site/ in the package -->
<files folder="site">
<filename>index.html</filename>
<filename>helloworld.php</filename>
</files>
<administration>
<!-- Administration Menu Section -->
<menu>TEXT</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">
<!-- Admin Main File Copy Section -->
<filename>index.html</filename>
<filename>helloworld.php</filename>
<!-- SQL files section -->
<folder>sql</folder>
</files>
</administration>
</extension> - 3). Replace “TEXT” with the output text that you want for your component.
- 4). Replace the “DATE” with the date of the program’s creation.
- 5). Replace the “NAME with your name.
- 6). Replace the “EMAIL ADDRESS” with the email address that you want for the component.
- 7). Replace the “AUTHOR EMAIL” with your personal email.
- 8). Save the code to your computer and then drag it into the "Tables" folder on your "Joomla!" software application.