Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » How do I customise a DataObjectManager popup?

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 425 Views
  • HansR
    Avatar
    Community Member
    140 Posts

    How do I customise a DataObjectManager popup? Link to this post

    I have a DataObjectDecorator for the File class that needs to add and remove a few fields from the file popup. While updateCMSFields() is called, I seem to be unable to modify the fields in the popup. I have the DataObjectManager module installed (and uploadify, but that's not affecting this), and the file popup is clearly a DataObjectManager_Popup (DOM_P) object.

    How can I add/remove fields from a DOM_P? A method for updateCMSFields() to detect whether it's deling with a DOM_P GUI would be handy too.

    Hans

  • HansR
    Avatar
    Community Member
    140 Posts

    Re: How do I customise a DataObjectManager popup? Link to this post

    It turned out that an if statement that was checking if the file had a valid ID was stopping the code from running. It's all solved now, and there's nothing special about customising DataObjectManager popup GUIs.

    I find it odd that the File object's ID field was set to zero when updateCMSFields() was called, as these were existing files with corresponding database entries.

    Hans

    425 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.