Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

Blog module doesn't use the standard HTML form?!


Go to End


10 Posts   7535 Views

Avatar
Anatol

126 Posts

7 August 2008 at 11:21am

Edited: 07/08/2008 11:21am

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

Avatar
thisisred

Community Member, 9 Posts

16 August 2008 at 10:17am

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.

Go to Top