J1.5

Creating custom template parameter types

From Joomla! Documentation

Revision as of 13:40, 19 January 2008 by Shantanubala (talk | contribs)

The "J1.5" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

Quill icon.png
Page Actively Being Edited!

This j1.5 page is actively undergoing a major edit for a short while.
As a courtesy, please do not edit this page while this message is displayed. The user who added this notice will be listed in the page history. This message is intended to help reduce edit conflicts; please remove it between editing sessions to allow others to edit the page. If this page has not been edited for several hours, please remove this template, or replace it with {{underconstruction}} or {{incomplete}}.

Custom XML Parameter Type[edit]

XML parameter types allow the user to modify or change certain parts of a template, plugin, module, or component without having to edit any code - as long as these parameters are implemented by the developer of the Joomla! extension.

The XML File[edit]

Within every Joomla! extension, there is an XML file used for installation purposes. This file lists all the contents of the package, as well as various items used in the Joomla! extension.

Editing the XML File[edit]

The XML file will have contents which look similar to this (except filled with the extension's details):

<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
	<name></name>
	<author></author>
	<creationDate></creationDate>
	<copyright></copyright>
	<license></license>
	<authorEmail></authorEmail>
	<authorUrl></authorUrl>
	<version></version>
	<description></description>
	<files>
		<filename module="mod_blog_calendar"></filename>
	</files>
	<languages>
                <language></language>
	</languages>
	<params>
	</params>
</install>

Find the <params> tag first. This will be the focus of XML parameters in Joomla!.

Adding Parameters[edit]

After finding the <params> tag, place an opening (<param>) and closing (</param>) tag for the parameter.

After placing the opening and closing tags, choose whether you want one of the following types of parameters:

  • [MyWikiPage#List_Parameters List Parameters]

List Parameters[edit]

Radio Parameters[edit]

Text Parameters[edit]