News Feed E-mail

Get How-To's right in your inbox. Subscribe to the HowToJoomla! news feed e-mail. Just enter your email address here:

Delivered by FeedBurner

Login






Lost Password?
No account yet? Register

Affiliates

Azrul's JomComment
JoomlaShack
iJoomla
The Joomla! Store
Member of W3C Sites dot com
How to Create a Basic Template PDF Print E-mail
Written by Cory   
Monday, 25 September 2006
Article Index
How to Create a Basic Template
Step 1: Design
Step 2: HTML Markup
Step 3: CSS
Step 4: Joomlafy
Steps 5-9
Sample Template Files

Step 5: Create a Thumbnail

This step is not entirely necessary. Your template will load and run properly with or without a thumbnail. This just gives you a quick look at the template from the template manager.

The dimensions of a thumbnail do not have to meet specific requirements, but they should be around 225 pixels wide by 150 pixels high. Give your thumbnail the name 'template_thumbnail.png'.

Here is my thumbnail:

Step 6: Create "templateDetails.xml"

The next step is to create the 'templateDetails.xml' file. Here is the XML markup that goes into this file for our template:

 
<mosinstall type="template" version="1.0.x">
  <name>redspheres</name>
  <creationDate>09/26/2006</creationDate>
  <author>Cory Webb</author>
  <copyright>Copyright 2006 - Cory Webb, Released under GNU/GPL</copyright>
  <authorEmail>your email here</authorEmail>
  <authorUrl>www.howtojoomla.net</authorUrl>
  <version>1.0</version>
  <description>RedSpheres is a sample Joomla! template for the purpose of instruction. I hope we all learn something.</description>
  <files>
    <filename>index.html</filename>
    <filename>index.php</filename>
    <filename>template_thumbnail.png</filename>
    <filename>templateDetails.xml</filename>
    <filename>css/index.html</filename>
    <filename>css/template_css.css</filename>
    <filename>images/index.html</filename>
    <filename>images/logo.png</filename>
    <filename>images/bullet.gif</filename>
  </files>
</mosinstall>

It is important that every file in your installation package has a corresponding filename tag in the 'templateDetails.xml' file.

Step 7: Zip It

All of your template files should be in a folder that is named with your template name. Use a file compression application, like WinZip, to create a ZIP file with your template files. This ZIP file is your installation file.

Step 8: Install It

In your template manager, install your new template, and set it as your default template.

Step 9: Modify It

Nobody's perfect. We all make mistakes. For that reason, you should be prepared to check your template for errors, browser compatability, and overall quality. Using the Joomla! template manager, you can modify your template 'index.php' and 'template_css.css' files right from the browser. You can make changes, save them, and immediately see the result by previewing your site.



 
Tag it:
Delicious
Digg
Technorati
< Prev   Next >
Advertisement

About HowToJoomla

HowToJoomla was started in September 2006 by me, Cory Webb, a long-time Mambo/Joomla user with a desire to give back to the community that has given so much to him.

HowToJoomla is not the best, most comprehensive Joomla tips site out there. That's not the goal. The goal is to share some of the knowledge and experience that I have gained through years of using the world's best content managment system. I hope that you will find this site useful and visit often. As I come across new tips and ideas, I will post them here for all to see.

I hope you enjoy using HowToJoomla and find it very useful.

Please take some time to read the Disclaimer.

Thanks for visiting!

About Me

I am a 28-year-old husband and father of a beautiful baby girl named Lucy. I have a degree in Electrical Engineering from the University of Texas at Austin, an MBA from Baylor University, and over 4 years experience working with the Mambo/Joomla CMS.

On February 1, 2008, I started a web design, development, and consulting company specializing in designing and developing custom Joomla-powered websites. The new company is aptly named Cory Webb Media, LLC. The double meaning is purely unintentional, but with a last name like "Webb" it is difficult to escape the obvious puns. If you are looking for professional assistance with your website, please feel free to contact me to discuss your project.

I also run HowToJoomla, CoryWebb.com (my personal website/blog), and JoomlaForm.com (a site dedicated to promoting good design in the Joomla! community). In my spare time (if there is such a thing), I volunteer with the youth ministry at my church.

Copyright © 2006 - Cory Webb Media, LLC - All rights reserved.
Powered by Joomla!