Joomla Template Tutorial - Part 3: Now, we will build our first joomla template. We start from simplest layout. This posting focus on step by step creating simple joomla template.
- Open folder where joomla template placed. Assuming, the template folder within www/joomla/.
- Create folder, named "mytemplate".
- Open mytemplate folder. Create a file name "index.php".
- Create a file named "templateDetails.xml". Enter following code:
<?xml version="1.0" encoding="utf-8"?> <install version="1.5" type="template"> <name>mytemplate</name> <version>1.0.0</version> <creationDate>12/12/07</creationDate> <author>Wiwit Siswoutomo</author> <authorEmail>wsiswoutomo@yahoo.com</authorEmail> <authorUrl>http://www.phpeveryday.com</authorUrl> <copyright></copyright> <license>GNU/GPL</license> <description>TPL_MY_TEMPLATE</description> <files> <filename>index.php</filename> <filename>templateDetails.xml</filename> </files> <positions> <position>breadcrumbs</position> <position>left</position> <position>right</position> <position>top</position> <position>user1</position> <position>user2</position> <position>user3</position> <position>user4</position> <position>footer</position> <position>debug</position> <position>syndicate</position> </positions> </install>
When read above codes, you can guess, it is like metadata for this template. Content this XML file is about our Joomla template information.
| Series this article: Joomla - Template: Understanding Basic Template (Part 1) Joomla - Template: Understanding Module Position (Part 2) Joomla - Template: My First Template (Part 3) Joomla - Template: Activate Template (Part 4) Joomla - Template: Creating Layout (part 5) Joomla - Template: Using jdoc (part 6) Joomla - Template: Using Parameters (Part 7) Joomla - Template: Place Text (Part 8) Joomla - Template: Creating Preview Thumbnail (Part 9) advertisements blog comments powered by Disqus |

