I want the read more link to only show if the article actually has a manually inserted readmore divider. Is there a way to do this?
14 years 10 months ago #61167
Aaron :)<?php if ($this->item->params->get('catItemReadMore')): ?><?php if ($this->item->params->get('catItemReadMore') && ($this->item->fulltext != "")): ?>Darryll wrote:Hey folks,
I dug a little deeper and I found the code in a backup of an old site. Just tested on a Joomla 2.5.4 / K2 2.5.6 install and it worked just fine.
category_item.php<?php if ($this->item->params->get('catItemReadMore')): ?>
replace with<?php if ($this->item->params->get('catItemReadMore') && ($this->item->fulltext != "")): ?>
Thanks all the same for the replies and I hope this helps :)
<?php if ($this->item->params->get('catItemReadMore') && (mb_strlen($this->item->fulltext) > mb_strlen($this->item->introtext))): ?>Log in or create an account to reply.