Skip to content

Templates icon

Create Your Own Mambo Template

To create your own Mambo template you need to build the following files:

OPTIONAL: To make it easy to preview the template in the template administration, or via the template switcher module, it is recommended to create a screenshot of the template (140px wide x 90px high) and save it as template_thumbnail.png.

In earlier tutorials, we talked about the index.php file and template_css.css. A blank template for Mambo and a CSS guide are available for you to use - just download these from the downloads area. Yesterday, we looked at creating the templateDetails.xml file. Today, we put them all together and prepare our completed template for uploading to our Mambo site.

Steps to Build Your Template Package

  1. Create a folder and give it the same name as your template. This is the name that you entered in the <name> field in your templateDetails.xml file;
  2. Add your index.php and templateDetails.xml files to this new folder;
  3. If you are using a template_thumbnail.png screenshot with your template, add this to the templates folder as well;
  4. Create a new folder/directory inside the template folder and call it images;
  5. Add all of your template's images to the new images folder;
  6. Create a second new folder within the template folder and call is css (without the quotation marks);
  7. Add your template_css.css file to the css folder;
  8. Now that everything is in place, zip up your templates folder (this will contain the css and images folders as well). If you do not already have a zip utility, you can download a free one from 7-zip.

Once that is done you are ready to install your new template using the Universal Installer in the Mambo administrator backend.

Free Download

download

Download: Mambo Template Starter Pack
Version: 1.0
Updated: June 1, 2008
Size: 36.48 KB

A free download of a complete Mambo template starter-pack is provided here. This package contains a blank index.php file, a template_css.css file containing all Mambo CSS selectors ready for you to style, a blank templateDetails.xml file, and a basic template_thumbnail.png that you can use to identify which template is yours. You are free to use these as a starting point for your own template development. Enjoy!

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.