Read more displays on all articles

More
14 years 9 months ago #3278 by lcdservices
running beta5

In blog views, if read more is enabled, it appears on ALL articles, regardless of whether a read more break was inserted or the text exceeded the max characters value.

It looks like a bug.

Please Log in or Create an account to join the conversation.

More
14 years 9 months ago #3287 by lcdservices
ok, to fix this, the following line in the templates:
Code:
<?php if ($this->params->get('show_readmore', 1)) : ?>

should be:
Code:
<?php if ($this->params->get('show_readmore', 1) && $items[$i]->fulltext ) : ?>

that ensures the readmore only is present if the content item has text. i'm not sure how this will work with the character count breaks.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.295 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline