I have also gone ahead and fixed a function to make the intro hide and show on the blog view work.
blog_item.php line 56 -58 in my case
Code: Select all
<?php if (!$params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?>
Changed to (Notice the !
removed before the $params to fix this - I have also removed this in templates/[template name]/html/com_content/article/default.php)
Code: Select all
<?php if ($params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php endif; ?>
Then add <?php echo $this->item->introtext; ?>
Code: Select all
<?php if ($params->get('show_intro')) : ?>
<?php echo $this->item->event->afterDisplayTitle; ?>
<?php echo $this->item->introtext; ?>
<?php endif; ?>
Now you can hide the intro text if wanted or show it along.
Now lets get the full text to display
in file - com_content/models/articles.php
Line 162 in my case, find
Code: Select all
'a.id, a.title, a.alias, a.title_alias, a.introtext,'
Simply add a a.fulltext,
behind that like so...
Code: Select all
'a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext,'
Logically – if you have read more shown you wont need full text.
Now open your template override file for category blogs
templates/[template name]/html/com_content/category/blog_item.php
So lets make it work in the following way – if read more is shown, fulltext is not, if read more is hidden fulltext is shown
find and remove
Code: Select all
<?php echo $this->item->introtext; ?>
Then find /b]
Code: Select all
<?php endif; ?>
<?php if ($this->item->state == 0) : ?>
Add before the <?php endif; ?>
:
Code: Select all
<?php else : ?>
<?php echo $this->item->fulltext; ?>
like so
Code: Select all
<?php else : ?>
<?php echo $this->item->fulltext; ?>
<?php endif; ?>
<?php if ($this->item->state == 0) : ?>
This will show the full text when read more is hidden, and only the read more link when it is is shown
If you want to always display the Full text do it as follow:
Now open your template override file for category blogs
templates/[template name]/html/com_content/category/blog_item.php
Find
Code: Select all
<?php echo $this->item->introtext; ?> on line 131 in my case
and change the introtext; to fulltext;
Code: Select all
<?php echo $this->item->fulltext; ?>