I am not sure the title is very descriptive but I have not found a better one.
I enabled the "Document" and "Image" plugins only for my group type. When I visit the group/[id]/media page, I have "Status" and "Media type" dropdowns for filtering. The "Media type" dropdown contains all the existing media types even if my group can only be associated with "Document" and "Image" media types.
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 3188566.patch | 637 bytes | zcht |
Issue fork groupmedia-3188566
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
a.dmitriiev commentedI will check how the filter could be restricted based on the enabled plugins.
Comment #3
vbouchetPlease note that I created the ticket here because I noticed it on the group/[id]/media page but the same apply to group/[id]/node (from group/modules/gnode module). Given it is a Views, I suspect it will be unnecessary complex to filter the list.
Comment #4
a.dmitriiev commentedThere is already something similar in Lightning media browser called "Yield to media context" and there the view filter respects the media reference field settings, so it is displaying only the bundles that are allowed in the field settings. So this is sure possible and challenging ;)
Comment #10
lobsterr commentedComment #11
hernani commentedThis broke release 2.0 as the the Group class was not imported to .module.
Comment #12
lobsterr commentedthanks, I will fix it soon, a lot of changes and three releases
Comment #13
zcht commentedHave now actually needed it urgently, and already built its own patch... well watched @hernani, thank you
Comment #15
lobsterr commentedA new release was tagged 8.x-2.1