Reusing child templates on different sites
Creating child templates using Joomla’s Template Manager, as seen in previous sections of this chapter, is the easiest way to create our child. It might also be convenient for you to create your child template modifications and overrides directly on your Joomla! site. When we want to reuse our child in other sites, we need a way to move our changes. Luckily, we can reuse child templates on as many sites as we need; the only condition is that the site needs to have the parent template of the child already installed.
The easiest way to reuse our child template on several sites is to create an installable package. As we already have our templateDetails.xml
file, we only need to package the files the proper way to create them.
There are two different folders to take into account, the main template folder and the media folder (in case you added changes to it). To make the process easier, let’s copy our original child template...