Jump to:

7940 Posts in 1543 Topics by 946 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » filter on ManyManyDataObjectManager

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: 1037 Views
  • rainerh
    Avatar
    Community Member
    23 Posts

    filter on ManyManyDataObjectManager Link to this post

    Hello everybody,

    I'm using the ManyManyDataObjectManager for associating Pages to a DataObject called Group. As my website currently has 1400 pages it is nearly impossible to see the pages that are already linked to a group.
    Is there some way to create a filter for that use case?

    Greetings!

  • UncleCheese
    Avatar
    4085 Posts

    Re: filter on ManyManyDataObjectManager Link to this post

    Your goal is to show only the groups that the current page is linked to?

  • rainerh
    Avatar
    Community Member
    23 Posts

    Re: filter on ManyManyDataObjectManager Link to this post

    Hello,

    yeah right, just the other way round: I want to show the pages that are linked to the current group.

    Thanks for your quick answer.

  • UncleCheese
    Avatar
    4085 Posts

    Re: filter on ManyManyDataObjectManager Link to this post

    But the DOM is showing Groups, so I'm not sure I understand. You want a separate DOM to show pages?

  • rainerh
    Avatar
    Community Member
    23 Posts

    Re: filter on ManyManyDataObjectManager Link to this post

    No, everything works as expected. I have a DataObject called Group which has a m:n connection to the Page object. So I select a group and get a tab called pages that shows me a list of all existing pages. The pages that are connected to the current group have a marked checkbox. As it is now the case I have 1400 pages and I would need some kind of filter that only lists those pages that are already connected.

    I hope my problem is now a little bit clearer.

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