I wonder if I missed anything on how to get this up and running. I installed the focuspoint module v3.1.1 via composer on my project (CMS + FW: 4.4.4). Afterwards, I've cleared the silverstripe-cache/ folder and ran dev/build?flush=all. Then I added:
use JonoM\FocusPoint\Forms\FocusPointField;
// [...]
/**
* @var array
*/
private static $has_one = [
'FocusImage' => '\SilverStripe\Assets\Image',
];
// [...]
public function getCMSFields()
{
$fields = parent::getCMSFields();
// [...]
$fields->addFieldToTab(
'Root.Main',
new FocusPointField('FocusImage', 'Focus', $this->FocusImage())
);
// [...]
return $fields;
}
to a Data Object and ran dev/build again. The image field got generated as expected. The CMS gives me this error afterwards:
Am I forgetting or missing something? Do I use the module correctly? Thanks for your help in advance!