Thanks for pointing me in the right direction Willr
This solution throws the following error in SS 3.1:
PHP Fatal error: Cannot instantiate abstract class DBField in /var/www/sites/standard-bank/framework/control/injector/InjectionCreator.php on line 17
So the solution for SS 3.1 seems to be to use the create_field() method instead i.e.
return DBField::create_field('HTMLText', $this->Content);
Posted to: How to convert URLs from /extending-silverstripe-overview/ to correct form? | Show Thread | Post Reply