Adding a templateDetails.xml file to a Joomla 3.1 Template


The last thing we need to do before we can install the Joomla 3.0 template that we are creating is to create a templateDetails.xml file. This file holds various details about the template, such as who wrote it and when. It can also contain configuration settings for the template that the user can modify, such as background colors and font sizes. As we are creating a very basic template, our templateDetails.xml will be very basic as well – at this time we will not be showing you everything you can do within this file.

Example templateDetails.xml file

Setting up a templateDetails.xml file is very straight forward because the file is easy to understand. For example, if you see <creationDate>10/04/2012</creationDate> within the file, you can safely assume that this is the date that the template was created. We are adding the following code to a file named templateDetails.xml in the root of our template files (see screenshot above).

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "">
<extension version="3.0" type="template" client="site">
  <name>Basic Joomla 3.0 Template</name>
  <author>InMotion Hosting</author>
  <authorEmail>[email protected]</authorEmail>
  <copyright>Copyright (C) 2012 InMotion Hosting</copyright>
  <description>A very basic template for Joomla 3.0</description>

Was this article helpful? Let us know!