Modules, plug-ins, and components all allow you to define configuration parameters through XML files. Many common parameter types are predefined and can be used in Joomla extensions. Every parameter you define must have five basic attributes.
- Parameter name, so you can reference it later in your code.
- A default value to be displayed and used if no value is chosen.
- A visible label
- A description appearing when the mouse cursor hovers over it
- The type of parameter
A categorized list is below:
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


0 comments:
Post a Comment