Creating a basic templateDetails.xml file

From Joomla! Documentation

Revision as of 08:38, 17 July 2011 by Mvangeest (Talk | contribs)

Joomla 1.5

The templateDetails.xml file is essential. Without it, your template won't be seen by Joomla!. The file holds key "metadata" about the template.

Let's take a look at an example:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.5//DTD template 1.0//EN" "">
<install version="1.5" type="template">
	<author>John Doe</author>
	<copyright>John Doe 2008</copyright>
	<description>My New Template</description>

So, as you can see, we have a set of information between markup tags (the <element>s). Your best approach is to cut and paste this into your templateDetails.xml file and change the relevant bits (such as <name> and <author>).

The <files> part should contain all the files that you use - you possibly don't know what they are called yet - don't worry, update it later. The <folder> element can be used to define an entire folder at once.

Leave the positions as they are - these are a common set so you will be able to switch easily from the standard templates.