Book Image

Joomla! 1.5 Templates Cookbook

By : Richard Carter, Chris Davenport
Book Image

Joomla! 1.5 Templates Cookbook

By: Richard Carter, Chris Davenport

Overview of this book

Templates in Joomla! provide a powerful way to make your site look exactly the way you want either using a single template for the entire site or a separate template for each site section. Although it sounds like an easy task to build and maintain templates, it can be challenging to get beyond the basics and customize templates to meet your needs perfectly.Joomla! 1.5 Templates Cookbook consists of a series of self-contained step-by-step recipes that cover everything from common tasks such as changing your site's logo or favicon and altering color schemes, to custom error pages and template overrides. It starts off with the basics of template design and then digs deep into more complex concepts. It will help you make your site more attractive and user-friendly. You will integrate your site with various social media such as Twitter and YouTube; make your site mobile-friendly with the help of recipes for creating and customizing mobile spreadsheets; and use miscellaneous tricks and tips to get the most out of your website. You get all of this in a simple recipe format that guides you quickly through the steps and explains how it all happened.
Table of Contents (16 chapters)
Joomla! 1.5 Templates Cookbook
About the Author
About the Reviewers


As you've seen throughout this book, there are a huge number of extensions for Joomla! that provide features you can add to your Joomla! website with little hassle.

By default, any HTML that these extensions provide is usually defined by the author of the extension in the extension's \views directory. Joomla!'s content component has its HTML defined within the components\com_content\views directory. This means that the HTML that is generated for say, the "article" type of content, is stored in components\ com_content\views\article\tmpl\ as default.php. To overwrite the way the HTML is output for this view, you can simply copy the default.php file from this directory to your own Joomla! template directory. For example, if rhuk_milkyway is the name of the Joomla! template that you're using, then you store your template override in the templates\rhuk_milkyway\html\com_content\article\ directory as default.php.

Template overrides can be used to overwrite what Joomla! outputs at the module and component level. This means that you're able to customize Joomla! on a component basis (such as the "article" example mentioned earlier), as well as being able to customize what is output for modules (for example, a "latest news" block on your Joomla! website's home page).