29 October 2010 at 8:58am
I want to know if there is a way to ovewrite silverstripe Core classes, od tell the cms to use my classes.
if i put a core template in mysite/templates/TableListField.ss the cms will use my template
I want to achieve the same with the class it self eg : "MyTableListField extends TableListField" and tell the cms to use this class MyTableListField instead. or use the same technique as the DataObjectDecorator but I can't seem to find a way.
29 October 2010 at 12:27pm
Yeah, Object::use_custom_class only replaces objects created with Object::create. So, I guess we should be writing SS code using Object::create all the time, but no one does :/ so it is of limited use.