Is there a way to prevent the introtext formatting from being stripped?

Hi, I have two instances of the MinifrontpagePro module using the Carousel theme. Is there a way to prevent the introtext formatting from being stripped or removed?
I’d also like to keep the link assigned to the image (which currently leads to the article itself).
Perhaps this is possible by overriding the template.
Best regards
2 weeks 8 hours ago #1 by theant

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

  • Posted by TemplatePlazza (5459) Offline
Hi theant,Yes, both of those can be done through a template override. After you've created the template override, find this line:
echo HTMLHelper::_('string.truncate', strip_tags($item->introtext), $introtext_truncate);
Replace it with:
echo HTMLHelper::_('string.truncate', $item->introtext, $introtext_truncate, true, true);
For the image link, simply find this part :
<a href="<?php echo $item->link; ?>" ...
and replace it with :
<a href="<?php echo $thumb_img[1]; ?>" ...
2 weeks 7 hours ago - 2 weeks 7 hours ago #2 by TemplatePlazza
Last edit: 2 weeks 7 hours ago by TemplatePlazza.

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

Powered by Kunena Forum