joomlajoomla3.0

Joomla 3 category blog article override


Im trying to override the article layout for articles showing in the category blog layout. I have overriden the blog.php file from the folder components/com_content/views/category/tmpl into mytemplate/html/com_content/category, but this only overrides the category blog layout, not the layout of the actual articles.

The bit i need to override is the bit that loads inside here,

<article class="leading-<?php echo $leadingcount; ?><?php echo $item->state == 0 ? ' system-unpublished' : null; ?>" itemprop="blogPost" itemscope itemtype="http://schema.org/BlogPosting">
  <?php
    $this->item = & $item;
    echo $this->loadTemplate('item');
  ?>
</article>

Any ideas how to do this without overriding every article on the site.

Thanks.


Solution

  • you should override this file:

    components/com_content/views/category/tmpl/blog_item.php
    

    Read More:

    Customize Your Joomla Templates by Learning Overrides