Jump to:

796 Posts in 409 Topics by 304 members


SilverStripe Forums » Widgets » Use has_many in widget

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 809 Views
  • x75
    Community Member
    42 Posts

    Use has_many in widget Link to this post


    is there a way to use hay_many in a widget?

    I can't find a way to get this to work in the gui.
    DataObjectManager won't work. It displays a list, but when you try to add an entry, the popup opens and shows the 404 Page.
    HasManyComplexTableField breaks the page completely.

    Any other ideas?


  • swaiba
    Forum Moderator
    1796 Posts

    Re: Use has_many in widget Link to this post

    Just an idea, but how about using a checkboxset field? You might have to do some magic to implode/explode the values into a "Text" field and then again explode it as required.

    I've looked at the widgeteditor a bit to try (and talked to some other cleverer ss people) and do nice stuff you can use on forms, but it is restricted due to the way the id's of the fields are translated to be like multi-dimensional arrays - but hey it might be possible I just don't know how

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.