How to Make a Template Override?
Joomla! template overrides was introduced in Joomla 1.5 and it is a great feature that allows you to override the HTML output of a component or module which follows the MVC templating structure.
Template Overrides give us the ability to make layout changes without hacking the extension core files.
How to Make a Template Override?First of all you need to create a directory named html in your template?s root. After creating your html folder you need to copy a component or module's directory into the HTML directory in the following format:
Now you can edit default.php to make all your changes.
Following Sample Shows How to Create a Template Override for com_content Component- yourtemplate
- - html
- - - com_content
- - - - article
- - - - - default.php
That is a great way and highly recommended to make changes!
Joomla Template Override is a great feature since Joomla 1.5 and gives us complete control over the HTML output of the code from Joomla!