Asset Overriding in Joomla
In an ideal world, almost all extension assets (templates, images, css, etc) should be overridable. The following describes the way we hope all Joomlashack extensions will follow core Joomla standards (someday at least) and provide extremely customizable extension displays.
If one of these don’t work in our extensions, it should be considered a bug - unless there is a specific architectural reason why it shouldn’t
When extension core assets are in the correct media folder for its type and loaded properly using Joomla core methods, the following overrides will work
Type | Source Override |
---|---|
image | /media/<EXTENSION>/images /templates/<TEMPLATE>/images/<EXTENSION> |
stylesheet | /media/<EXTENSION>/css /templates/<TEMPLATE>/css/<EXTENSION> |
script | /media/<EXTENSION>/js /templates/<TEMPLATE>/js/<EXTENSION> |
layouts | /components/<COMPONENT>/layouts /templates/<TEMPLATE>/html/layouts/<COMPONENT> |
views | /components/<COMPONENT>/views/<VIEW>/tmpl /templates/<TEMPLATE>/html/<COMPONENTS>/<VIEW> |
modules | /modules/<MODULE>/tmpl /templates/<TEMPLATE>/html/<MODULE> |
plugins | /plugins/<FOLDER>/<PLUGIN>/tmpl /templates/<TEMPLATE>/html/plg_<FOLDER>_<PLUGIN> |
There will be situations where some of these overrides won’t work. Either on purpose, for reasons of internal logic or often, due to programmer inattentiveness, lazy coding or overly tricky custom coding techniques.