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.

General Questions /

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

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

GridField show and filter on 'ManyMany' relationship


Go to End


1536 Views

Avatar
Dig

Community Member, 33 Posts

27 November 2012 at 1:44pm

I can't quite picture how this would look so I'm no doubt doing something wrong!

I have a list of businesses, they can each have many 'types' and many 'regions'. I would like to have a single gridfield overview of these and have the columns filterable.

I can add custom summary fields that will take the many types and show them as a comma separated list of names, that is all good, but filtering doesn't work on these columns.

I can't just put 'Types' in the summary field as I get an error fortemplate does not exist on ManyManyList

Filtering is really the action I want here and its a front end field so I don't have model admin's search on the left.

Any advice welcome!