Table of Contents

XML Parameters

Common Usage

Parameters are used in many places in Joomla!:

All parameters have the following attributes:

General Use

Parameters definitions are made up of one params tag and one or more param tags, for example:

<params>
  <param ... />
  <param ... />
</params>

The params tag can take the optional addpath attribute which is equivalent to calling $params→addElementPath() in the code. It should hold a full path relative to the site installation folder, for example:

<params addpath="/components/com_contact/elements">
  <param ... />

This allows any developer to define custom controls.

Category List

Selecting an Article category:

<param name="catid" type="category" default="0" label="Category" description="An article category" />

Using the section (previously scope which is also still supported) attribute, you can select categories for other components:

<param name="catid" type="category" section="com_weblinks" default="0" label="Category" description="A weblinks category" />

Editors

Selecting one of the installed wysiwyg editors:

<param name="editor" type="editors" default="" label="User Editor" description="WYSYWYG Editor for this User" />

Filelist

<param name="file_name" type="imagelist" directory="/images/stories" filter="" hide_default="1" default="" label="Menu Image" description="PARAMMENUIMAGE" />

Helpsites

<param name="helpsite" type="helpsites" default="" label="Help Site" description="Help site for this User" />

Imagelist

<param name="menu_image" type="imagelist" directory="/images/stories" hide_default="1" default="" label="Menu Image" description="PARAMMENUIMAGE" />

Languages

<param name="language" type="languages" client="site" default="" label="Front-end Language" description="paramLanguage" />

List

<param name="link_titles" type="list" default="" label="Linked Titles" description="Make the Item titles linkable">
	<option value="">Use Global</option>
	<option value="0">No</option>
	<option value="1">Yes</option>
</param>

Menu

Menu Item

<param name="menu_item" type="menuitem" label="Menu Item" />

Radio

<param name="cache" type="radio" default="0" label="Enable Cache" description="PARAMENABLECACHE">
	<option value="0">No</option>
	<option value="1">Yes</option>
</param>

Section

<param name="sectionid" type="section" default="0" label="Edit posts" description="Set the section to retrieve posts from" />

Spacer

<param name="@spacer" type="spacer" default="" label="" description="" />

Text

<param name="moduleclass_sfx" type="text" default="" label="Module Class Suffix" description="PARAMMODULECLASSSUFFIX" />

Textarea

<param name="description_text" type="textarea" default="" label="Description Text" rows="5" cols="30" description="PARAMDESCTEXT"/>

Special