Jump to:

22977 Posts in 11726 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » Decorating Image - extra cms fields

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 403 Views
  • Sewer
    Avatar
    Community Member
    5 Posts

    Decorating Image - extra cms fields Link to this post

    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.

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Decorating Image - extra cms fields Link to this post

    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.

  • Sewer
    Avatar
    Community Member
    5 Posts

    Re: Decorating Image - extra cms fields Link to this post

    Thanks.
    It works on File class, and it should be enough for translating purposes.
    Unfortunatelly, it still doesn't work for Image class.

    403 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.