Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Views OG relationship plugins aren't displayed for entities that have groups, but no group content.
For example, if you have a entity type called "groups" and another entity type called "content", you can't get the relationships to OG membership from the "groups" entity type.
Comment | File | Size | Author |
---|---|---|---|
#4 | og-entity_without_content_views_relationships-1781666-4.patch | 658 bytes | spotzero |
#2 | og-entity_without_content_views_relationships-1781666-2.patch | 659 bytes | spotzero |
#1 | og-entity_without_content_views_relationships-1781666-1.patch | 659 bytes | spotzero |
Comments
Comment #1
spotzero CreditAttribution: spotzero commentedThe attached patch fixes the problem. There is a check that validates all of the avalable entities for views, but only considers them if they are group content.
Comment #2
spotzero CreditAttribution: spotzero commentedSetting status to needs review.
Comment #3
amitaibuhi there!
Minor but
and
should be&&
Comment #4
spotzero CreditAttribution: spotzero commentedHere's the corrected patch.
Thanks.
Comment #5
googletorp CreditAttribution: googletorp commentedI needed exactly this and the patch provided worked like a charm.
Comment #6
amitaibuCommitted, thanks.