Beginner's Guide
•
Print view
This template is responsible for the output when you access the print view.
htdocs/templates/[template_name]/component.php
More template pieces like the files for the core overrides are located in htdocs/templates/[template_name]/
html. The core overrides cannot be edited from the administrator backend.
The changes you make here will change the core Beez2 files. This is something to keep in mind in
case of updates.
OVERRIDES
You have already created a style, changed the CSS files and the main page of your template and you
are still unhappy with the result? :-) Then this is the perfect time to discuss overrides. In Joomla there are
two kinds of overrides: template overrides and alternative layouts.
Template overrides
Let's assume you want to change the layout of the search result page. A component like the search
component has a default template layout, which is stored in the file /httpdocs/components/com_search/views/
search/tmpl/default.php. This file makes the search page look the way it looks. Add a few words to the file,
save it and you will immediately see the result! For example, add
<strong>I have changed something :-) </strong>
in line 13 and see what happens (Figure 4).
Figure 4: Changes in the HTML output
The result is good for your motivation because it was so easy and is displayed in every template.
However, it is not good for your reputation because you have just changed core code. With
the next Joomla update, your changes will be gone!
Joomla! 2.5 - Beginner’s Guide
Monday, 30 January 2012! Page 195