What is a template override and how can you use it?

Template overrides can be used to control the output (appearance) of Joomla! and its extensions can be changed almost at will..

For the output, the JoomGallery uses so-called template files that are located in the 'tmpl' folder of the respective 'view'.
You could now change this template file and the output would change accordingly. However, your changes would be lost with the next update, as the template files will then be overwritten again. In order to get a permanent and update-safe change to the template file, you can create a template override.

An example:

To change the output of the detailed view, the file
components/com_joomgallery/views/detail/tmpl/default.php
be adjusted.

Now copy the file above into the html folder of your template. The 'views' and 'tmpl' folders are not taken into account. For example, if you are using the protostar template, the path is:
templates/protostar/html/com_joomgallery/detail/default.php

Other views can contain other template files such as 'default_header.php' or 'list.php'. An override of these files is also possible.

However, this 'permanent' change to the template file has one disadvantage: Important changes, e.g. resulting from the introduction of new features are not automatically included in the override. In this case, the override must be recreated based on the original template file.

 

Related Links:

Template overrides on joomla.org