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.

Blog Module

Discuss the Blog Module.

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

Overwrite default blog options


Reply

4 Posts   1235 Views

Avatar
Mo

13 June 2009 at 2:47am Community Member, 509 Posts

Hi All,

I haven't seen this posted elsewhere, so apologies if it is. I have some fields that appear in the cms for every page template, I don't however want them to appear on the blog pages. I also want to disable commenting by default.

Anyone got any ideas how can I do this without editing the code files in the blog folder?

Cheers in advance,

Mo

Avatar
sorich87

14 June 2009 at 2:04am Community Member, 14 Posts

Hi, You have to extend the BlogEntry content type with you own one.

Avatar
Mo

15 June 2009 at 9:29pm Community Member, 509 Posts

If I did that, would I still be allowed to add that page as a child of the blog holder in the CMS?

Mo

Avatar
Willr

16 June 2009 at 5:43pm Forum Moderator, 5511 Posts

You will have to decorate the blogentry page type to override it - http://doc.silverstripe.com/doku.php?id=dataobjectdecorator