Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • synapsis Friend
    #184948

    Does JA Side News module strip html from the articles it pulls in? I can’t seem to get my formatting to appear in the slide-up the way I want it. It shows all of the text, but none of the HTML formatting. It just runs the text all together, which makes for a jumbled and unattractive mess.

    I’m using the most recent version of JCE as my text editor. But I am not having this issue anywhere but in my Side News modules.

    Does anyone know where this HTML stripping is happening in Side News, so I can amend it to not strip certain tags?

    Thank you!

    synapsis Friend
    #483350

    I’ve set text-filtering to None in the Joomla global configs for everybody but Public, but that doesn’t seem to have had any effect. The article itself looks fine. The HTML displays correctly in the editor also. I don’t think it’s JCE that’s stripping out the HTML. Saving the article retains the HTML when I re-open it. It’s definitely the SideNews module only that’s affected.

    Please advise! This issue must be resolved quickly, as we want to launch the site overnight on Thursday (tomorrow) for Friday morning visitors.

    Thank you for your swift help!

    synapsis Friend
    #483351

    Specifically, I’m trying to alter the Events slide-up so that it shows the next few social events, but with some formatting so that the dates and times don’t all run together. I’ve tried unordered lists, paragraphs, line breaks, horizontal rules… none of them work in the Side News module.

    synapsis Friend
    #483467

    I’ve also tried turning the WYSIWYG editor off completely in Global Configs, and saved that way — the HTML is definitely being stripped only in the module.

    I’ve looked, but I just can’t find the code that’s stripping it (nor do I understand why it would be there). Please help, this site goes live tomorrow!

    synapsis Friend
    #483468

    PS – All I’ve found so far in the module is line 28 of sidenews_content.php:

    <?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars); ?>

    Taking the strip_tags out doesn’t seem to do anything by itself though. Before you ask, yes, I cleared my browser cache. What more would I need to do?

    synapsis Friend
    #483470

    Changing that line to the following seems to have NO EFFECT at all…

    <?php echo $helper->trimString( $item->introtext, $descMaxChars); ?>

    synapsis Friend
    #483585

    Anybody? If html in the JA SideNews module just isn’t possible, I guess I’ll make do, but IF it’s at all possible, I’d really love for someone to help me achieve it.

    Thanks!

    HeR0 Friend
    #483611

    Hi Synapsis,

    What is file path where you made the above changes? This module layout is overridden in template, so you need to edit code in templates/ja_mero/html/mod_jaslidenews/file_name.php

    Regards

    synapsis Friend
    #483679

    Thank you HeR0. That was VERY helpful. Unfortunately, while that allows me to use the formatting I wanted, it appears to cause other problems (which I’m sure is why the strip_tags was there). With formatting in the sliders, the modules beneath the Side News modules load incredibly slow (or not at all). Maybe there’s a way to take out the strip_tags and keep them working smoothly, but there’s not much point in solving a minor problem by creating a major one. 🙂

    IF someone can show me how to take out the strip_tags, and keep things working smoothly, I’d be grateful, but I won’t hold my breath. 🙂

    HeR0 Friend
    #483758

    Hi Synapsis,

    Plz try with code below:

    <?php echo $item->introtext ; ?>
    However, you need make sure that the articles have introtext and introtext length is not too long.

    Regards

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 2 voices, and was last updated by  HeR0 11 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum