I want to add some extra fields to Image class - mainly for translations.
I guess it shouldn't be done by using updateCMSFields() function. It didn't work for me.
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
I want to add some extra fields to Image class - mainly for translations.
I guess it shouldn't be done by using updateCMSFields() function. It didn't work for me.
updateCMSFields should work on any DataObject subclass (this includes Image). Make sure you've applied the decorator the image. Try apply your decorator to File and see if updateCMSFields works then.
Thanks.
It works on File class, and it should be enough for translating purposes.
Unfortunatelly, it still doesn't work for Image class.