Download all Joomla templates including quickstart (demo)only $29
👋 All our products will be compatible with Joomla 6 😎
Important - Hands Up!

- Please ask using the account with which you made the purchase or download of our products and in its respective category.
- If you bought our products in another market, ask your questions in that market, not here.

* ADD PRODUCT NAME IN START OF SUBJET

UT Articles Carousel

  • R
  • rbuelund New Member
  • Topic Author 1 week 4 days ago #1
I need this module to NOT strip html from my intro text. Can this be done ? Otherwise I need my mopney back, as I then cannot use the module.

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

  • L
  • leoalv Moderator
  • 1 week 1 day ago #2
Hello.

First, we apologize for the late response; we had problems with our internet provider.

Before we begin, it's important to understand that strip tags in Joomla intros are handled by the core. This is because when you open an HTML tag in the intro, you close it within the full text. Therefore, if the intro is displayed with the opening HTML code but without the closing tag, it will completely distort the site.

With this in mind, our module only cleans up HTML tags if they haven't been closed within the intro. If your site is displaying plain text, it's precisely because there are unclosed tags.

If you want to force the display of content formatted with HTML tags, regardless of whether they are closed or not, and at your own risk, let us know, and we'll tell you how to create an override that displays the entire intro or the full text if it wasn't separated into intro and full text. Obviously, character limits can no longer be used, as this could truncate the tags before they are closed.

Regards

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #3
Ok it helped setting the text limit to zero. BUT - if I use CK Page Builder to create an article with a button, the styling of the button is still stripped ?? Rows are also removed?

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

  • L
  • leoalv Moderator
  • 1 week 1 day ago #4
To display the intro, there are two options:
Without truncating the character count. In this case, if you disable truncation, the module's intro or full-text module checks if all tags are closed. If they are, it displays the HTML correctly (depending on Joomla's core HTML filter). If they are not closed, it removes all the HTML and displays plain text.

With truncation enabled. This feature is more useful if you only want to display plain text without HTML. For example, if you set the truncation to 800 characters and your intro's HTML is 1200 characters long and correctly closed, it will truncate before the closing HTML tag, which is why it always displays plain text.

My recommendation is to create an override. We make a modification in two lines, which basically calls the raw intro text with all the HTML (provided Joomla's text filter allows it). Only then will you be able to display everything you've created with CK within your article, or even if it's just simple text.

Regarding button styles and others in CK Page Builder: We haven't used this builder, but if the HTML loads correctly but without styles, it depends on how CK handles styles.

I think we should stop guessing and safely override the module in your template.

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #5
I have created an override, but what to alter ??

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

  • L
  • leoalv Moderator
  • 1 week 1 day ago #6
If you have already created the override, open the following file: templates/YOUR_TEMLATE/html/mod_ut_articles_carousel/default_item.php and change lines 53 and 55 to:
Code:
$item->displayIntrotext = $item->introtext;

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #7
Hmm.. ok - no change - the html from CK Page Builder is still not shown, Would be really nice if you could support that type of articles also.

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #8
If I use a normal Joomla article with this content:
<p>Du finder retningslinjer, der er udarbejdet af DPS samt andre retningslinjer.<br><br><br></p>
<p><a class="btn btn-secondary" style="float: right;" href="index.php?option=com_content&view=article&id=28&catid=15">Læs mere </a></p>

in your module the <br> tags are still removed ???
The html looks like this in your module:
<p>
Du finder retningslinjer, der er udarbejdet af DPS samt andre retningslinjer.
<a class="btn btn-secondary" style="float: right;" href="index.php?option=com_content&view=article&id=28&catid=15">Læs mere </a>
</p>

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

  • L
  • leoalv Moderator
  • 1 week 1 day ago #9
No, if the module removes tags, it removes everything; if it doesn't remove them, it doesn't remove anything.
Your <br> tags are possibly being removed by the editor's filter or the Joomla core html filter.

Would you like me to access your site or schedule a TeamViewer meeting to see how we can help you with the <br> tags?

Regarding the content from CK, if it's not displayed in the module, it's because the programming logic dictates that content created with CK is stored in the CK tables, and the CK plugin for Joomla Content is what allows you to edit and display content from the CK table in Joomla articles. Our module, however, is designed to display content stored in the Joomla Content table (articles).

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #10
in com_content in the introtext field there is this:

<p>Du finder retningslinjer, der er udarbejdet af DPS samt andre retningslinjer.<br><br><br></p>
<p><a class="btn btn-secondary" style="float: right;" href="index.php?option=com_content&view=article&id=28&catid=15">Læs mere </a></p>

So why are the <br> tags removed when I see this in your module???

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #11
As I am Super user on the site there is NO filtering on the content.

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #12
What does this line in UtArticlesCaroulselHepler.php do ??:

$item->introtext = self::_cleanIntrotext($item->introtext);

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #13
Well I commented out that line in the Helper file and now both the Joomla content and the CK Page Builder content is shown as expected !! Could you please make this cleaning optional, so that it is a setting you can switch of.

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

  • L
  • leoalv Moderator
  • 1 week 1 day ago #14
cleanIntrotext() is a Joomla-recommended function for sanitizing content that basically replaces <br> and other tags. To keep the HTML of your articles 100% intact, comment out line 294 of that file with two slashes // at the beginning of the code on that line.

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

  • R
  • rbuelund New Member
  • Topic Author 1 week 1 day ago #15
Yes well as written I found out that myself - but please make this an option in the settings, as this will get overwritten in an update.

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

  • L
  • leoalv Moderator
  • 1 week 1 day ago #16
I'll implement it and submit it for review; if it passes, I'll publish it. As you can see, our module is in the Joomla JED because it passed a review.
Regards

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

76,354+
Happy customers guarantee our Templates and Extensions

Secure Payment

Use your cards with Paypal.

 
 
 
 
 
 
 
Â