Jump to:

1841 Posts in 1599 Topics by 558 members

Blog Module

SilverStripe Forums » Blog Module » Main blog post being served from TinyMCE full of escape characters

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1812 Views
  • domperignon
    Avatar
    Community Member
    5 Posts

    Main blog post being served from TinyMCE full of escape characters Link to this post

    Hello,

    I'm building my first site with silverstripe and, in general, I'm very impressed with it. I'd be grateful for advice with a problem I've just encountered.

    Running SS 2.3.5, I have installed 0.2.1 of the blog module and enabled WYSIWYG editing according to http://www.silverstripe.org/archive/show/185873#post185873. Although my blog front page is showing text rendered as it should be, SS is serving the full post using escape characters, so that my headings are showing as marked-up plain text rather than in properly rendered styles.

    How can I correct this, please?

  • domperignon
    Avatar
    Community Member
    5 Posts

    Re: Main blog post being served from TinyMCE full of escape characters Link to this post

    [Three weeks later] Could somebody spare a minute to shed any light on this?

    Many thanks.

  • Juanitou
    Avatar
    Community Member
    323 Posts

    Re: Main blog post being served from TinyMCE full of escape characters Link to this post

    Hi!

    Your BlogEntry.ss template must have something like this, check it:

    <% if IsWYSIWYGEnabled %>
       $Content
    <% else %>
       $ParsedContent
    <% end_if %>

    In any case, you must simply call $Content.

    In the BlogHolder, it’s normal that you see the url tag, since it’s not HTML.

    Also, I don’t see NEW entries, have you tested it? Default entries are borne to be badly displayed, since they use BBCode.

    Hope it helps,
    Juan

  • domperignon
    Avatar
    Community Member
    5 Posts

    Re: Main blog post being served from TinyMCE full of escape characters Link to this post

    Hi Juan

    Many thanks for responding. Apologies for not getting back to you. I did have the code you mention in my BlogEntry.ss file but, owing to this issue, have decided not to pursue using the blog module at least until the production release of 2.4 and a compatible blog module that, I hope, will resolve this issue.

    All the best,

    Dominic

    1812 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.