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.

    Read 19957 times Originally published on Wednesday, 30 June 2010 01:00
    Last modified on Sunday, 22 September 2013 12:20
    comments powered by Disqus
    Powered by Joomla
    Download Joomla for free