Introduction
The purpose of this tutorial is to serve as an introduction to creating Joomla! templates. It will cover the essential files and code needed to create a basic template. The code is presented so it can be cut and pasted with very little modification needed.
Setting Up A Directory Structure
To make the most basic template, create a new folder in the "templates" folder. Name this folder after your template i.e. "mynewtemplate".
Using a text editor (or dedicated editor such as Adobe Dreamweaver) create the files "index.php" and "templateDetails.xml"
To keep things organized, make 2 new folders called "images" and "css". Inside the "css" folder create a file called "style.css".
Although it is fine to place all your CSS code directly in your "index.php" file to start, many web developers prefer to place their CSS code in a separate file that can be linked from multiple pages using the "link" tag.
This is the most basic practical setup.
Outline of folder and file structure:
mynewtemplate/
> css/
> > style.css
> images/
> index.php
> component.php
> templateDetails.xml
Creating A Basic templateDetails.xml file
The templateDetails.xml file is essential. Without it, your template won't be seen by Joomla!. The file holds key "metadata" about the template.
Lets look at an example:
"http://dev.joomla.org/xml/1.5/template-install.dtd">
mynewtemplate
2008-05-01
John Doe
john@example.com
http://www.example.com
John Doe 2008
GNU/GPL
1.0.2
My New Template
index.php
component.php
templateDetails.xml
template_thumbnail.png
images/background.png
css/style.css
breadcrumb
left
right
top
user1
user2
user3
user4
footer
So, as you can see, we have a set of information between markup tags ( the
). Your best approach is to cut and paste this into your "templateDetails.xml" file and change the relevant bits (such as ).
The part should contain all the files that you use - you possibly don't know what they are called yet - don't worry update it later.
Leave the positions as they are - these are a common set so you will be able to switch easily from the standard templates.
For more detailed Tutorial please visit http://docs.joomla.org/Tutorial:Creating_a_basic_Joomla!_template
Or
You may visit http://www.compassdesigns.net/tutorials/208-joomla-15-template-tutorial.html