Tutorial: How to understand Joomla templates in five easy steps

Open Source Training has been teaching people how to learn Joomla for several years now and have found hundreds of beginner Joomla books. There are numerous tutorials on how to add sections and categories or explaining the difference between components and modules.

However, there are very few tutorials on how to build templates. There are two books and a handful of other resources scattered around the web. So, we set out to build the very best template class we could. Here are first five sessions of the class: Joomla templates are not rocket science. You can learn how to build and modify them. We can show you how. Interested?

This is a guest post by Steve Burge of Open Source Training. Steve is also a member of the Open Source Matters board and a regular blogger at joomla.org.

In order to get started, you'll need to understand the five essential building blocks of every Joomla template. In the five tutorials below we guide you through them all:

These tutorials are part of our full Joomla Template Class available to all members. Click here to find out more.

Part 1: Template Setup and templateDetails.xml

 

Part 1: Session Notes

Copy and Paste:

 test Alpha10/16/09My Name

Part 2: index.php

 

 

Part 2: Session Notes

Copy and Paste:

 

Part 3: CSS - Cascading Style Sheets

 

Part 3: Session Notes

 body { background: #EF1789; color: #EFE717; } a { color: #333; text-decoration: underline; } img { border: 0px; } 

Part 3: CSS Tutorial Links

Part 4: Images

 

Part 4: Session Notes

bg.png
(Right Click - Save As - then save to your images directory for your template)

Code

 body { background: url('/../images/bg.png') repeat; }

Part 5: Security

We need to make sure that your template is secure and not easily hacked.

blocks

There are two essentials steps we need to make that happen:

  1. Add this line to the very, very top of index.php. This means that only Joomla can run commands on the file – no outside scripts:
     
  2. Add a blank file called index.html to each folder. That means the main /test/ folder, plus /css/ and /images/. Why? To hide your folder contents. Without an index.html, anyone could see and browse all your files.

These tutorials you've just seen are part of our full Joomla Template Class available to all members. Click here to take your Joomla template skills to the next level.

Steve Burge

Steve Burge “has taught thousands of beginners — and thousands more who’ve experimented with Joomla! but haven’t mastered it yet. Nobody knows more about guiding Joomla! users up the learning curve — from confusion to results!”. Steve is a board member of Open Source Matters, which provides Joomla! with financial and legal support.

Website: www.ostraining.com/
Read 18710 times Last modified on Sunday, 22 September 2013 12:20

Want more information like this?

Buy the 287 page e-book Blogging with Joomla - just $9!

  • Understand and configure Joomla extensions like K2 and EasyBlog
  • Optimize your web site for search engine visibility
  • Create and organize content
  • Track and analyze traffic
  • Integrate advertising, social functions and video
  • Optimizing a web site for speed and much more 

Learn more and order now!

comments powered by Disqus
Powered by Joomla
Download Joomla for free