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   1241 Views

Avatar
Mo

Community Member, 509 Posts

13 June 2009 at 2:47am

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

Community Member, 14 Posts

14 June 2009 at 2:04am

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

Avatar
Mo

Community Member, 509 Posts

15 June 2009 at 9:29pm

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

Forum Moderator, 5513 Posts

16 June 2009 at 5:43pm

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