Template parameters
You can also define parameters to control the behavior of your template as a super administrator. Template parameters are declared in templateDetails.xml
. Parameter default values can be set in params.ini
, which is also referenced in templateDetails.XML
as a template<file>
. This element takes a number of arguments, for example, type, name, default, description, and label, which depend on the types of parameters.
You can easily define a template parameter: add a<param>
element for each parameter that you want to define and insert these between<params>...</params>
tags. Place this at the bottom of the templateDetails.xml
and before closing the</install>
tag.
For example:
<?xml version="1.0" encoding="utf-8"?> <!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.5/template-install.dtd"> <install version="1.5" type="template"> <name>jobsitetemplate</name> <version>1...