Minifrontpage and HTML tags

Hello. I just installed the module for the first time and I noticed it strips the html tags included in the intro. Is there a way to change this?
Thanks for your help!
1 year 2 days ago - 1 year 2 days ago #1 by Marina W
Last edit: 1 year 2 days ago by Marina W.
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5177) Offline
Hi, You can do that via template override. ( If you don't know how to create template override you can follow this video :


Then find this code :
echo JHtmlString::truncate(strip_tags($item->introtext), $introtext_truncate);

change that to
echo $item->introtext;
 
1 year 2 days ago #2 by TemplatePlazza
The topic has been marked as resolved.
Thank you!
The line of code I had to replace was a bit different:
echo JHtmlString::truncate($item->introtext, $introtext_truncate, true, false);  

but you pointed me in the right direction and I was able to identify it and make the replacement.
Great extension, thanks!




 
1 year 1 day ago - 1 year 1 day ago #3 by Marina W
Last edit: 1 year 1 day ago by Marina W.
The topic has been marked as resolved.
  • Posted by TemplatePlazza (5177) Offline
Ah ok. Glad it works 
1 year 1 day ago #4 by TemplatePlazza
The topic has been marked as resolved.
Powered by Kunena Forum