Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi all,
Will it be possible for group members/group admins in an organic group to create content based on Media Gallery (like creating a photo album etc.) and place that content in the group for other group members to get access to?
Thanks,
Thomas
Comments
Comment #1
Poieo CreditAttribution: Poieo commentedThis is already possible. Just make Gallery a group content type.
Perhaps it's the display of these galleries that is the issue for you? To do so, just create a view of gallery 'content' of type 'teaser'. Then, create a contextual filter using 'Field: Groups audience:gid '.
Make the URL of the view something like 'galleries/%'. Then, visiting galleries/[gid] will display all galleries inside of a group.
So, for group 1, visiting galleries/1 will display all galleries in group 1.
Here is an export of the view I created to do it:
Comment #2
theullrich CreditAttribution: theullrich commentedthe simpler solution is to copy the og-content view. Then change the
format:
format: Grid
Show: Content / Teaser
Filter Content by your content type (which is probably Gallery)
Comment #3
thomas1977 CreditAttribution: thomas1977 commentedThanks a lot, guys! Will take a look at it.
Comment #4
drupaljohngo CreditAttribution: drupaljohngo commentedI built an organic group media gallery yesterday. Watch the following video on using Organic groups. the author uses panels and views. I'd suggest the quicktime video. http://www.archive.org/details/OrganicGroups7
I applied the same configuration with OG nodes and Views but had to set some the views settings differently for the gallery to display properly. Also get the OG permissions module. Pay careful attention to roles and permission. Group visibility and Group audience were vital to setting up.
the argument input part of the video is where it all comes together. Pay attention to the man.
Let me know if you have any issues.
T
Comment #5
Taxoman CreditAttribution: Taxoman commentedComment #7
lyosef CreditAttribution: lyosef commentedThank you Poieo for sharing your view export. Very generous of you. Saved me a lot of time and more.