21307 Posts in 5737 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 568 Views |
-
how to upgrade extended modules?

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.
-
Re: how to upgrade extended modules?

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
| 568 Views | ||
|
Page:
1
|
Go to Top |


