1. A Joomla! 1.5 Template
from Scratch
Hagen Graf
http://cocoate.com
http://twitter.com/hagengraf
2. Our target group ...
Has a rough idea of
● HTML, CSS, Firefox, Firebug, FTP (important)
● JavaScript (MooTools), PHP, GIMP, Photoshop (optional)
● being creative (not always bad)
● writing an invoice (necessary to survive :-) )
3. I assume it's someone like you :-)
http://www.flickr.com/photos/awarnach/3483532628/
November 2009 3
4. The aim is individuality in
design
positions
chrome
parameters
accessibility
eye candy
November 2009 4
5. Step 1 from 11
Our own folder in /templates with
● index.php /templates/[name of template]/
/templates/[name of template]/css/
● params.ini (empty, writable)
● templateDetails.xml
● template_thumbnail.png
● css/templates.css
6. Step 2 from 11
own configuration in
● templateDetails.xml
<install version="1.5" type="template">
<name>joomladayit</name>
<version>1.0</version>
<creationDate>20.November 2009</creationDate>
<author>Hagen Graf</author>
<copyright>GNU/GPL</copyright>
<authorEmail>hagen@cocoate.com</authorEmail>
<authorUrl>http://cocoate.com</authorUrl>
<version>0.1</version>
<description>... description</description>
<f les>
i
<f lename>index.php</f lename>
i i
<f lename>templateDetails.xml</f lename>
i i
<f lename>template_thumbnail.png</f lename>
i i
<f lename>css/template.css</f lename>
i i
</f les>
i
</install>
11. Step 9 from 11
The Joomla! ingredients
● accessibility
12. Step 10 from 11
The Joomla! ingredients
● Internationalization
(/administrator/languages/en-GB/en-GB.tpl_rhuk_milkyway.ini)
# $Id: en-GB.tpl_rhuk_milkyway.ini 11394 2009-01-05 15:28:11Z kdevine $
# Joomla! Project
...
COLOR VARIATION=Color Variation
COLOR VARIATION TO USE=Color variation to use
BACKGROUND VARIATION=Background Variation
BACKGROUND COLOR VARIATION TO USE=Background color variation to use.
TEMPLATE WIDTH=Template Width
WIDTH STYLE OF THE TEMPLATE=Select the method for the width style of the template
from the dropdown.
....
BLACK=Black
ORANGE=Orange
RHUK_MILKYWAY=RHUK Milkyway template
TPL_RHUK_MILKYWAY=MilkyWay is a fresh new template for Joomla!. The clean design of
this template makes it very lightweight and fast.
13. Step 11 from 11
The Joomla! ingredients
● Parameters in templateDetails.xml
<params>
<param name="colorVariation" type="list" default="white" label="Color
Variation" description="Color variation to use">
<option value="blue">Blue</option>
<option value="red">Red</option>
<option value="green">Green</option>
<option value="orange">Orange</option>
<option value="black">Black</option>
<option value="white">White</option>
</param>
</params>
● The code in index.php
<?php echo $this->params->get('colorVariation'); ?>
15. Thank you and have fun by using Joomla
Sources
http://docs.joomla.org/Joomla!_1.5_Template_Tutorials_Project
http://joomla.cocoate.com/templates-selbst-erstellen
Hagen Graf
hagen.graf@gmail.com
http://cocoate.com
http://twitter.com/hagengraf
November 2009 15