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.

All other Modules /

Discuss all other Modules here.

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

Customizing Modules - General Best Practices?


Go to End


1148 Views

Avatar
Beedubsss

Community Member, 7 Posts

5 July 2016 at 11:23am

Hi,

This is just a general question when it comes to using modules, I was looking for the best practices of extending / customizing a module? For example the silverstripe/newsletter module, I want to override the doSubscribe function to implement some custom logic. What would the best way to override / extend this function without altering the module code which could affect updates? I've looked at the Extension and DataExtension docs but can't seem to find the right information.

Thanks