Blog Latest What XML Parameters We can use with Joomla 1.5.x Extensions?
 
What XML Parameters We can use with Joomla 1.5.x Extensions? PDF Print E-mail
Digg!

When building Joomla! components, modules or plugins we can define all configuration parameters through XML files. Some common parameter types are predefined and can be used in our Joomla! extensions.
Every parameter you define must have five basic attributes.

  1. Parameter name, so you can reference it later in your code.
  2. A default value to be displayed and used if no value is chosen.
  3. A visible label
  4. A description appearing when the mouse cursor hovers over it
  5. The type of parameter
<param name="greeting" type="text" default="Have a nice day!" label="Greeting Message" description="A simple greeting text">

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

Selections

menu - All published menus in a list

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

radio - A list of radio selection items to choose from

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

Other

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



Reddit!Del.icio.us!Facebook!Slashdot!Netscape!Technorati!StumbleUpon!Newsvine!Furl!Yahoo!Ma.gnolia!
 

Jomwitter Twitter Badge

Who's Online

We have 32 guests and 2 members online

Syndication