News summary and HTML

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

News summary and HTML

Post by janvl »

Hi,

I am testing with CMSMS 2.1.5
The Newsmodule is 2.50.5 and
TinyMCE 3.1.3

When I mark Text in the newssummary fat, undelined, italic or links this is not shown in the frontend.

In newsdetail its is shown.

The template used is Simplex.

I upgraded PHP to 5.6.
Had the caches cleared but it does not show the HTML-coded text, just plain text.

I tested this in 1.12.2 there I get all HTML-coded text as it is ment.

Does anyone have the same problem?
Or maybe a solution?

Kind regards,
Jan
Jos
Support Guru
Support Guru
Posts: 4017
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: News summary and HTML

Post by Jos »

Check for the strip_tags modifier in the news templates. Just delete them and html won't be stripped

Code: Select all

        {if $entry->summary}
            <p>{$entry->summary|strip_tags}</p>
            <span class='more'>{$entry->morelink} &#8594;</span>
        {else if $entry->content}
            <p>{$entry->content|strip_tags}</p>
janvl
Power Poster
Power Poster
Posts: 947
Joined: Wed Aug 13, 2008 10:57 am

Re: News summary and HTML

Post by janvl »

Thanks Jos,

That's it!
Shame, I should have known that.

Kind regards,
Jan
Post Reply

Return to “CMSMS Core”