Joomla Core Parameters
- Details
- Written by: Matthew Murphy
- Category: How-To Guides
- Hits: 58
Available extension parameter types and how to use them When you create an extension (component, module, plugin or template) you can implement parameters in the .XML file. With this parameters you can set options, and use them in the main file, the .PHP file. There are 20 extension parameter types available in Joomla! 1.5. You can use them easily and in this document you will find a description for all of them. You can also add your own parameters, but this will not be described in this article.
Table of contents
XML file Parameters Core parameters Calendar Category Editors File list Folder list Help sites Hidden Image list Language List Menu Menu item Password Radio Section Spacer SQL Text Text area Time zones
You need an XML file for every extension. It is used mainly to install the extension. A particular XML file looks like this:
<?xml version="1.0" encoding="utf-8"?>
<install version="1.5" type="extension type">
<name>Name of your extension</name>
<creationDate>Created Date</creationDate>
<author>Your name</author>
<authorEmail>Your e-mail address</authorEmail>
<authorUrl>Your website</authorUrl>
<copyright>Copyright</copyright>
<license>License, for example GNU/GPL</license>
<version>Version of the extension</version>
<description>Description of the extension</description>
<files>
<filename>add the files between those tags</filename>
</files>
<languages>
<language tag="en-GB">Language file</language>
</languages>
<params>
Place the parameters between these tags.
</params>
</install>
The parameters should be placed between the <params> and </params> tags. You can also add groups. For example, the 'Advanced' group. This will look like this:
<params>
'Normal' parameters
</params>
<params group="advanced">
Advanced parameters
</params>
Core Parameters
There are 20 parameter types available within your Joomla! 1.5 installation.
Calendar, Category, Editors, File list, Folder list, Help sites, Hidden, Image list, Language, List, Menu, Menu item, Password, Radio, Section, Spacer, SQL, Text, Text area and Time zones, and will be described here in detail.
Each one is described in the following order:
