Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

filter on ManyManyDataObjectManager


Go to End


5 Posts   1726 Views

Avatar
rainerh

Community Member, 23 Posts

30 November 2009 at 5:48am

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!

Avatar
UncleCheese

Forum Moderator, 4102 Posts

30 November 2009 at 6:16am

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

Avatar
rainerh

Community Member, 23 Posts

30 November 2009 at 6:19am

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.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

30 November 2009 at 6:55am

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

Avatar
rainerh

Community Member, 23 Posts

30 November 2009 at 7:10am

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.