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.

Archive /

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

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

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


Go to End
Reply


10 Posts   5997 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 [url]http://doc.silverstripe.com/doku.php?id=text[/url] 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