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.

Blog Module /

Discuss the Blog Module.

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

Extending classes in version 2


Go to End


2 Posts   1659 Views

Avatar
vxd

Community Member, 19 Posts

5 October 2015 at 8:27am

I've just updated the blog module from v1 to v2.

I have run the upgrade command and everything went smoothly.

Are there any documentation on how to extend the blog holder and the blog post?

In version 1 you would use

 class BlogHolderDecorator extends SiteTreeExtension { 

	class BlogEntryDecorator extends SiteTreeExtension {

Avatar
vxd

Community Member, 19 Posts

6 October 2015 at 7:33pm

I just had to remap the classes to the new class names in the config.