Skip to content

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:

<?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.

download

Download:  Blank templateDetails.xml file for Mambo 4.6.x.zip
Version: 1.0
Updated: February 1, 2009
Size: 421 bytes

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.

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

Topic: Mambo Tutorials
Tagged as: Mambo, PHP, templates, XML

Share on FriendFeed

{ 0 comments… be the first to comment }

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
Any comments that look like spam will be treated as spam - this includes SEO titles and use of spurious keywords.

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