By fnikola on
I have content (events, polls) that I have created inside an organic group (and marked not public), but this content shows in views that are outside the group. Is there a way to filter this group content to not display in the group. I can create a view that filters for this content when inside the organic group so the view only displays the content that is inside the group (posts from current group) successfully, but am having difficulty when trying to not show this group content outside the group.
Comments
check out the og user roles
check out the og user roles module-- it adds filters to views for exactly this.
I have this module enabled...
but the filters do not work as i thought they would. For example, I have tried to set the OG filters to exclude the content types without success as they (i.e. events, polls) are still showing up. I have tried the various OG filters without success and i thought the "Og: Post in specified group type [Is None Of] [og]" would work to exclude this content as og is the machine readable name for my organic group content type.
Thanks for your response.
does every user belong to at
does every user belong to at least one group? If so, what about the filter: "Og: Post in User Subbed Groups"?
No, every user does not belong to at least one group
We also have anonymous users that should see the content outside the group. In addition to the polls and events i created an announcement content type that is used at the site level for all users (authenticated, anonymous) and then inside the individual groups. I can just create a new content type, but was hoping to use the og functionality to restrict where the announcements displaed since they are not marked as public. I thought the og functionality would prevent the content types from displaying outside the groups but it is not working that way and maybe another permission is messing this up.
Thanks for your help!
I'm doing something similar
I'm doing something similar - excluding all group events from a public calendar view. I'm using the "OG: Public" filter (included with og.module), and it works perfectly - the calendar with an "OG: Public Is Yes" filter shows all events which are not in any group, as well as group events which are marked Public, and does not show group events which are not marked Public. Does this not work for you? (I have version 5.x-5.0 of OG and version 5.x-1.6 of Views.)
-----------------
Zoe Neill-St. Clair
Horse pyjamas.
Zoe Neill-St. Clair
Drupalshank @ Affinity Bridge
http://www.AffinityBridge.com
This doesn't seem to work in OG 6.x
I have OG 6.x-2.1 and views 6.x-2.11.
I hides anything not marked as OG Public, including non-OG content.
Any thoughts?
IT Sherpa: CTO, Founder, Full stack Dev, Drupal, Wordpress, more. Crushing on Angular, Node, JS & embedded C/C++.
Organizer for Drupal LA https://groups.drupal.org/la Meetup and 2016, 17, 18 LA Camps https://drupalcampla.com/