Note that there are some explanatory texts on larger screens.

plurals
  1. POMaintaining K2 module formatting in IntroText
    primarykey
    data
    text
    <p>So basically I've installed K2 on a Joomla! based website and I have IntroText turned on for category views. There is a Master category, Master, of which all other categories are subcategories, which is how you have to apply IntroText to multiple categories because K2 is finicky - set all the options you want in the Master category and call them from the subcategories.</p> <p>My particular problem is with losing HTML formatting in IntroText, so all blog posts would look like a brick of text (red lines denote where a paragraph should start, i.e. the <code>&lt;p&gt;</code> tag): <img src="https://i.stack.imgur.com/tB8uI.png" alt="Mein Probleim"></p> <p>It should look like the following: <img src="https://i.stack.imgur.com/GjtVT.png" alt="No problemo"></p> <p>I have tried changing pretty much every setting in the Category View option in the Master category to no avail, as the page the IntroText on is a K2 Category page. I have also tried turning <strong>ON</strong> HTML formatting (it is off by default) and then excluding the <code>p</code> and <code>br</code> tags from being removed, to no avail.</p> <p>After some Googling, I couldn't find an answer, but I will admit there were one or two I didn't try (mainly modding the PHP files, I would have tried if the answer actually had some feedback). So, if anyone has any suggestions or ideas, let me know please, I would appreciate it. I can provide more details if needed, but for the time being the site is offline. If you would like some more clarification on the website set up I can oblige, but I believe I've added all relevant K2 details that I could.</p> <p><strong>EDIT:</strong> I have also tried commenting out these lines in <code>/~siteDir~/public_html/modules/mod_articles_category/helper.php</code>to fix the issue, which also didn't work.</p> <pre><code> $introtext = str_replace('&lt;p&gt;', ' ', $introtext); $introtext = str_replace('&lt;/p&gt;', ' ', $introtext); $introtext = strip_tags($introtext, '&lt;a&gt;&lt;em&gt;&lt;strong&gt;'); </code></pre> <p><strong>EDIT2:</strong> I tried to just remove the whole <code>_cleanIntrotext</code> function and the call for it, <code>$item-&gt;introtext = self::_cleanIntrotext($item-&gt;introtext);</code>, but this also didn't work... which means something somewhere else is stripping the IntroText too?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload