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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

how to upgrade extended modules?


Go to End


2 Posts   971 Views

Avatar
DsX

Community Member, 178 Posts

21 January 2010 at 8:13am

Hello, I am setting up a blog page with silverstripe (as my first site, I'm moving from modx) I want to know if there are any best practices for making changes/additions to extensions that will allow easy updating of the package at a later date?

Can the classes be extended/overridden in additional files in anyway?
I'm thinking something like hooks and overrides/prepend/postpend but for extension mods??

any help in how to approach changes in the most manageable way would be greatly appreciated.

Avatar
Willr

Forum Moderator, 5523 Posts

21 January 2010 at 12:06pm

The usual method for overriding modules is to use sub themes for customizing css/images/templates and using decorators for customizing PHP files. Not all functions or objects are going to be decorator-able but you should be able to get pretty far using those 2 methods.

Subthemes - http://doc.silverstripe.org/doku.php?id=themes:developing#subthemes
Decorators - http://doc.silverstripe.org/doku.php?id=dataobjectdecorator