Tim Wilkinson
Tim Wilkinson

Reputation: 3801

Joomla 3.x category blog override to display full article

I have my category blog override set up to display a single leading article, the latest article to have been published.

I have all the files copied to the correct location, and the override is working as it should however, which part of the blog.php do I need to change so instead of displaying the 'read more' button, it displays the entire article?

Upvotes: 0

Views: 367

Answers (1)

Mike Feng
Mike Feng

Reputation: 833

The template file to change/override is blog_item.php and not blog.php. Look for this line of code:

<?php echo $this->item->introtext; ?>

and change it to:

<?php
echo $this->item->introtext;
echo JHtml::_('content.prepare', $this->item->fulltext);
?>

Removing the Read More button can be done through the options of the menu item you have created for your blog. Set Show "Read More" to Hide.

Upvotes: 1

Related Questions