Skip to content

Templates icon

Creating the templateDetails.xml File

The templateDetails.xml file contains all structural information about your template and tells Mambo what to do with the files contained within the template. It should look something like this:

download

Download: Blank templateDetails.xml file for Mambo 4.6.x
Version: 1.0
Updated: June 1, 2008
Size: 421 bytes

<?xml version="1.0" encoding="iso-8859-1"?>
<mosinstall version="4.6.4" type="template">
  <name>MyfirstTemplate</name>
  <creationDate>16/04/2008</creationDate>
  <version>1.0</version>
  <author>Your name</author>
  <authorEmail>mail@something.com</authorEmail>
  <authorUrl>www.yourhomepage.com</authorUrl>
  <copyright>2008 Your Name</copyright>
  <license>GNU/GPL</license>
  <description>A little description.</description>
  <files>
   <filename>index.php</filename>
   <filename>template_thumbnail.png</filename>
  </files>
  <images>
   <filename>images/image.gif</filename>
  </images>
  <css>
   <filename>css/template_css.css</filename>
  </css>
</mosinstall>

templateDetails.xml must include the details of all files that make up your completed template. You can have as many entries as you need - just add the file details between
<filename></filename> tags. Note: where files are to be placed within directories, the directory name is included (see the "images" and CSS examples above).

You can download a templateDetails.xml file here to use as a base for your own file. Just enter your data between the tags. If you don't wish to add some author information or license information, just leave those fields empty.

In the next tutorial we will look at how to package the template files ready for uploading and installing on your Mambo site.

For the other articles in this series on building your own custom Mambo template see my Mambo CSS Guide and my blank template for Mambo.

Bookmark This:
  • bodytext
  • Technorati
  • del.icio.us
  • Facebook
  • Google
  • StumbleUpon
  • Reddit

Whether I am developing Mambo or working on tutorials I am fuelled by coffee. Caffeine keeps me going so if you like the work I am doing please click on the cup to buy me a coffee today. Just $10 covers the cost of getting my caramel macchiato ;)

If you enjoyed this article make sure you subscribe to my RSS feed!

Leave a Reply

This is a gravatar-friendly site, enter your email address to use your gravatar.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

By submitting a comment here you grant this site a perpetual license to reproduce your words and name/web site in attribution.