Thursday, June 14, 2012

Joomla! 2.5: overwrite category blog layout template

Rule to overwrite a view of a component:
1. Add a copy of the component view file to the folder of your template with the following rule structure:
templates/TEMPLATE_NAME/html/EXTENSION_NAME/VIEW_NAME/FILE_NAME.php

2. After that modify it in your way.

To overwrite category blog layout (view): let copy and modify the files below:
-templates/[template name]/html/com_content/category/blog.php: present structure layout options (see meaning of Layout Options at the bottom)
-templates/[template name]/html/com_content/category/blog_item.php: present an item (article) in the blog layout

Layout Options:
# Leading Articles -> This refers to the number of articles that are to be shown to the full width
# Intro Articles -> This refers to the number of articles that are not to be shown to full width
# Columns -> This refers to the number of columns in which the articles will be shown that are identified as #Intro. If #Intro is zero this setting has no effect
# Links -> Number of articles that are to be shown as links. The number of articles should exceed #leading + #Intro

More ref:
http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core
http://kiteplans.info/2012/04/18/how-to-joomla-1-7-2-5-full-text-in-category-blog-layout-template-override/
http://forum.joomla.org/viewtopic.php?f=619&t=615539
http://docs.joomla.org/Understanding_Output_Overrides
http://construct-framework.com/intermediate/creating-a-core-output-override-in-construct-unified-for-joomla-16-and-molajo
http://docs.joomla.org/Layout_Overrides_in_Joomla_1.6
http://forum.joomla.org/viewtopic.php?t=677301

Subscribe to RSS Feed Follow me on Twitter!