Understanding the templateDetails.xml file
The templateDetails.xml
is vital for your Joomla! template to function correctly. It defines the metadata of your template. There are three fundamental things that this file tells Joomla!:
Information about the author of the template (that's you!)
The files that are used within the template
The positions that Joomla! uses to position content within the template
The templateDetails.xml
file can also provide information about a theme's color variations and other parameters.
Getting ready
If your template does not already have one, create a templateDetails.xml
file in your template's directory. For example, if your template was called ch2-test
, this would be in the templates\ch2-test
directory.
How to do it...
Before we begin, we need to define a few things in our file:
<?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...