Latest News Plus Date code issue
- Posted by TemplatePlazza (5310) Offline
From what I can see from the error code, it seems like you might be using a page builder of some sort. Could it be this one?
www.joomlack.fr/en/joomla-extensions/page-builder-ck
6 months 4 days ago #7
by TemplatePlazza
Please Log in or Create an account to join the conversation.
- Posted by Tony (6) Offline
- Posted by Tony (6) Offline
Hi, Can I assume with you silence that you cannot help me with issue?
5 months 4 weeks ago #9
by Tony
Please Log in or Create an account to join the conversation.
- Posted by TemplatePlazza (5310) Offline
Hi Tony, this issue occurs because Pagebuilder CK inserts its parameters into the introtext. In the case of a Joomla article, that code will be processed directly by the Pagebuilder plugins running on the article page. However, for modules that directly retrieve the introtext value, the content of introtext is not processed beforehand.
If you're able to edit the PHP file, you can edit this file:
/modules//mod_latestnewsplusdate/tmpl/default.php
Find this code on line 60:
Then replace it with:
Give it a try and let me know how it goes.
5 months 4 weeks ago #10
by TemplatePlazza
If you're able to edit the PHP file, you can edit this file:
/modules//mod_latestnewsplusdate/tmpl/default.php
Find this code on line 60:
<?php
echo JHtmlString::truncate(strip_tags($item->introtext), $introtext_truncate); ?>
Then replace it with:
<?php
$introtxt = $item->introtext;
$introtxt = preg_replace('/\{.*?\}/', '', $introtxt);
$introtxt = preg_replace('/\[.*?\]/', '', $introtxt);
$introtxt = preg_replace('/:[a-z]+\([^)]+\)|\.[a-zA-Z0-9-_]+/', '', $introtxt);
echo JHtmlString::truncate($introtxt, $introtext_truncate, true, false); ?>
Give it a try and let me know how it goes.
Please Log in or Create an account to join the conversation.