How to tell if the file can be overridden?

by user2976317   Last Updated October 15, 2019 11:10 AM - source

we are want to make some alternation to the output of a component in frontend but wonder how do we determine if the file can be overridden? And also if it can be overridden, how do we create the path for it? Thanks.



Answers 1


Any layout or view can be overridden in Joomla.

You can do this in your Joomla admin panel, by going to:

Extensions (top menu) >> Templates >> Templates >> Details and Files

Once there, go to the "Create Overrides" tab, and you will be able to select your component annd the view.

So let's say you create an override for com_content/archive. This will oveeride the files in the following directory:

ROOT/components/com_content/views/archive/tmpl

and create the overrides in:

ROOT/templates/your_template/html/com_content/archive

If you compare the paths, you'll get a better idea of how the override path is created.

Lodder
Lodder
October 15, 2019 11:01 AM

Related Questions


Disabling Joomla Unique Email Functionality

Updated May 25, 2015 22:04 PM

Overriding com_users component

Updated May 22, 2015 21:04 PM

Override XML File

Updated September 30, 2019 10:10 AM

Joomla login redirect URL issue

Updated March 03, 2019 20:10 PM