Skip to content

brianteeman/joomlachild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Joomla Child Templates

Create an installable child template

Step 1 - Create the minimal structure

As we are going to be inheriting everything from the parent template this can be kept to the absolute bare minimum. I have created an example blank child template that you can download and customise.

Step 2 - TemplateDetails.xml

Take my example file and replace the BTXXXXX with the name of your child template and update other values as required. You will see in my example that I add my initials to the name of the child template to avoid any possible conflict with other child templates.

Step 3 - Add the files

Copy the files you created into their respective folders. The language files are optional but they should be edited and renamed as well and the same with the two preview images.

Step 4 - Empty folders

My example includes an empty index.html file in each folder. This is required because Joomla will not create an empty folder during installation and while you might not need those folders now you will thank me later.

Step 5 - Zip it up

Now just create a zip file of everything and test that there are no mistakes and that it will install on your test site.

Step 6 - Install on a new site

All done. Now you can safely install on any new site

Step 7 - Required final step

Wonder why you never thought of this before and rush to create installable child template of all your favourite overrides and share them with the world.

Bonus

As well as the example blank child template I am also sharing some of my own installable child templates. They can serve as an example for you as they each use different features and functionality.