Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » Blog module doesn't use the standard HTML form?!

Our old forums are still available as a read-only archive.

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

Page: 1 2
Go to End
Author Topic: 5795 Views
  • Anatol
    Avatar
    126 Posts

    Re: Blog module doesn't use the standard HTML form?! Link to this post

    Hi,

    this is a late answer, but for anyone who has the same problem: in the template file /blog/templates/Layout/BlogEntry.ss you find the variable $Content . Simply change this to $Content.RAW , this should display the html code correctly.

    See http://doc.silverstripe.com/doku.php?id=text for more details.

    Cheers!
    Anatol

  • thisisred
    Avatar
    Community Member
    9 Posts

    Re: Blog module doesn't use the standard HTML form?! Link to this post

    Excellent solution. I've modified it one step further by adding:

    $Content.BigSummary(50)

    in the BlogSummary.ss field where the actual summary would be placed. This actually trims to the sentence in HTML. It works great if you're not doing complex HTML posts... I do have an issue though, all looks and works well, but I'm getting a Error Saving Content message inside the admin. It seems to be saving okay, however this site will be managed by users other than myself. Is there another adjustment that needs to be made to address that?

    Thanks.

    5795 Views
Page: 1 2
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.