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.
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:
and create the overrides in:
If you compare the paths, you'll get a better idea of how the override path is created.