Does anybody know why an output override won't work? I am familiar with output override and have tried it before, but this time it wont work. I am trying to override an article category blog layout, so I copied
\\components\\com_content
and paste it to my template, inside "html" folder which I just made
\templates\my_teamplate\html\com_content
I edited
\templates\my_teamplate\html\com_content\views\category\tmpl\blog.php
and it won't work, I tried editing the original core, to make sure it's the correct file
\components\com_content\views\category\tmpl\blog.php
and it worked, im pretty sure, it's the correct file, I just dont know the reason why it's not overriding. My Joomla version is 1.5.26
The HTML override does not mirror the component's exact folder structure.
Its default structure is:
component/view/template.php
In your case:
templates/yourTemplate/html/com_content/category/blog.php
I am extending the example and adding the path for modules as well, in case anyone needs it:
Component:
The Joomla path to the original component view's template that you want to override:
/component/[componentName]/views/[viewName]/tmpl/[templateName].php
gets overridden by this file in your template:
/templates/[yourTemplate]/html/[componentName]/[viewName]/[templateName].php
Module:
The Joomla path to the original module's template that you want to override:
/module/[moduleName]/tmpl/[templateName].php
gets overridden by this file in your template:
/templates/[yourTemplate]/html/[moduleName]/[templateName].php
Folder structure should be
templates/template_name/html/com_content/category/blog.php
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.