Jump to:

23374 Posts in 18175 Topics by 2866 members

General Questions

SilverStripe Forums » General Questions » how to upgrade extended modules?

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

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

Page: 1
Go to End
Author Topic: 666 Views
  • DsX
    Avatar
    Community Member
    178 Posts

    how to upgrade extended modules? Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5489 Posts

    Re: how to upgrade extended modules? Link to this post

    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

    666 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.