Why do we need child templates?
In Chapter 10, Creating Unique Web Applications with Template Overrides, we saw the power of Joomla! to create custom-designed web applications with template overrides. We can use template overrides to change the design of our component area for a website, we can add new styles or JavaScript-loading new assets, or we can even create new view types for our menus. This might seem enough, but there are some additional points:
- With template overrides, we cannot change the main site structure, as we cannot edit the template positions.
- With template overrides, we cannot edit web assets for the whole site, our changes will be limited to the areas of the site where the override takes place
- Most important, we cannot create an override of an override. You can have only one override per element. This is very important when the template you use uses a template override for the layout you want to override.
Child templates inherit files and...