====== XML Parameters ====== ===== Common Usage ===== Parameters are used in many places in Joomla!: * Item parameters * Menu paramters * Module parameters * Configuration parameters (new in 1.5) All parameters have the following attributes: * **name** - This is the field name of the parameter * **type** - This is the element type for the parameter, text, a list box, etc * **label** - The text label to be displayed in the parameter form * **description** - The text that will display when you hover over the label * **default** - The default value to use ===== General Use ===== Parameters definitions are made up of one ''params'' tag and one or more ''param'' tags, for example: 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: This allows any developer to define custom controls. ==== Category List ==== Selecting an Article category: Using the ''section'' (previously ''scope'' which is also still supported) attribute, you can select categories for other components: ==== Editors ==== Selecting one of the installed wysiwyg editors: ==== Filelist ==== * **directory** - the directory in which to list the files * **filter** - a regular expression to filter on, eg: filter="\.html$" lists all files ending with .html * **exclude** - a regular expression to exclude files from the list, eg: exclude="index\.html" will exclude the index.html file from the list, exclude="^_" will emulate private files if you name them with an underscore prefix (eg: _my_private_template.html) * **stripext** - set to 1 to strip the file extension in the list * **hide_none** - set to 1 to hide the 'Do not use' list option * **hide_default** - set to 1 to hide the 'Use Default' list option ==== Helpsites ==== ==== Imagelist ==== * hide_default - set to 1 to hide an automatic Use Default entry in the list ==== Languages ==== ==== List ==== ==== Menu ==== ==== Menu Item ==== ==== Radio ==== ==== Section ==== ==== Spacer ==== ==== Text ==== ==== Textarea ==== * rows - the number of rows for the textarea * cols - the number of columns for the textarea ===== Special =====