ZaldzBugz Frameworks

Parameters in Joomla

Posted by: zaldzbugz on: June 25, 2009

These parameters where defined XML files used for Modules, plug-ins, and components. Parameters must have five basic attributes.

1. Parameter name – Used to reference a code using $params->get(‘param_name’).
2. A default value.
3. Label
4. A description – popup message
5. Type

Type of parameters used:
Content

section – All published sections in a list category – All published categories in a list
Text Input

text – A standard text input

textarea – A plain textarea field

password – A standard text input where the characters are masked as they are entered editors – Provides the admin’s currently chosen WYSIWYG editor for input
Selections

menu – All published menus in a lis

t menuitem – All published menu items in a list

filelist – A list of files to choose from, given a base folder path

folderlist – A list of folders to choose from, given a base folder path

imagelist – A list of images to choose from, given a base folder

path list – A list of items to choose from (hardcoded into parameter definition)

radio – A list of radio selection items to choose from (hardcoded into parameter definition) sql – Creates a dropdown list out of a provided SQL query
Predefined

helpsites – A list of websites powering help file translations to choose from

languages – A list of installed languages to choose from

spacer – Creates a visual separation between parameters; no input value is required timezones – A list of all world timezones
Other

hidden – Creates a hidden form element with the value and name provided

Leave a Reply