phpeveryday.com

The best tutorial of php, php framework, php strategies, object oriented oriented,


Joomla - Template: My First Template (Part 3)

Tag: joomla, template   Category: Web Design, PHP Framework
post: 12 Dec 2007 read: 3,065


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.

  1. Open folder where joomla template placed. Assuming, the template folder within www/joomla/.
  2. Create folder, named "mytemplate".
  3. Open mytemplate folder. Create a file name "index.php".
  4. 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)

| Give Your Opinion | Recommend
Share and Bookmark to: These icons link to social bookmarking sites where readers can share and discover new web pages.
digg del.icio.us technorati Ma.gnolia BlinkList

Recommended articles by other readers:
Web Services: How PHP Kiss VB.NET? (Part 1)
Chart: How to Build Cool Animation Real Time Chart
Joomla: Fast Road to Understand Component Programming
Email: Send Attachement Mail
mod_rewrite - Part 1: create your "fantasy" URL

What do You Think?
Your Name *:
Email *:
(Will not be published)
Website/URL:
Your Comment *:
* Required


615
posting