K2 – Limit Intro Text

I was surprised I wasn’t able to do this easier, but it looks like others have struggled with this as well. I did get it fixed, and was able to limit the word count. I didn’t make a override yet but I will.

In the latest_item.php file I replaced:

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

with

<?php echo K2HelperUtilities::wordLimit($this->item->introtext, 50); ?>

Here is the thread that helped me solve it

https://www.joomlaworks.net/forum/k2-en/29406-solved-can-we-have-introtext-word-limit

I hope this helps someone else out there…

 

 

0 Comments

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>