Questions tagged [organic-groups]

Use it for questions about the Organic Groups module, not the Group module.

Filter by
Sorted by
Tagged with
17
votes
5answers
9k views

How to programmatically list member entities of an Organic Group?

How can I programmatically get a list of member entities of an Organic Group? (I know how to get a list of group members using Views — I'd prefer to do this using the Organic Groups API, but haven't ...
10
votes
3answers
8k views

How to programmatically add a user to a group in Drupal 7

I am trying to programmatically create a group node and add a user to that group in Drupal 7. The group node is being created just fine but the user is not being added to the group and I am not ...
9
votes
4answers
12k views

How can I get the group ID of a node?

I have this node that belongs to a group, and I want to get the group ID of that node, to print it, something like $node->nid; but with the group id. Is that possible?
9
votes
2answers
7k views

How to hide and/or prevent access to fields in a form, such as group_audience for organic groups

This has been troubleing me for a while.. When i try to hide fields like the group audience field, or the publishing setting from a form, on validation the form set both of these field to a null value,...
8
votes
1answer
8k views

How do I display all the nodes in an organic group?

I'm on d7. Im trying to figure out how to display all the nodes that are in an organic group. I feel like this is a major thing that the OG module should do and don't know why I cant figure it out. I ...
8
votes
2answers
5k views

What are the features of the Group module versus Organic Group module?

To create groups in Drupal we have at this moment the Group module and the Organic Groups module. From the Group module page: The Group module allows you to create arbitrary collections of your ...
8
votes
3answers
3k views

Add role to user after joining organic group with rules

I'm trying to add a user role to a user who has become a member of a group. The workflow is like this: User requests to join group. Request is approved by group administrator. User is a member of ...
7
votes
2answers
2k views

How can I programmatically get a list nodes that a user can update?

I'd like to build a list of nodes which the current user is able to update. This is to be used in a site using Organic Groups. My first hope was that there would be a Views filter that can check that ...
7
votes
1answer
2k views

Programmatically subscribing user to a organic group [duplicate]

I need to expose OG memberships within API functions calls and wonder how to programmatically subscribe a user to a group (pending state) and then i need to approve him programmatically and change ...
7
votes
1answer
169 views

When posting OG content, how to choose only from Content Author's Groups?

When a user is editing/creating a node, there is a field where the user can choose what groups to post the content to. I want this field to list only groups the user is actually a member of. Is there ...
7
votes
4answers
3k views

How can I control access to group-private content based on organic groups roles?

I would like my groups to be able to create content that is not only private to a group, but also private to certain roles within the group. For example, a post that is only accessible by members of ...
6
votes
2answers
4k views

Select organic group on the user registration form

There's a post already on the post installation forum, but I'm not sure if this is a OG bug. http://drupal.org/node/1108884 I am using Drupal 7 and OG 7.x-2.1 version. There is no "Group Audience" in ...
6
votes
3answers
2k views

Organic Groups and Panels

I've got Panels working with Organic Groups (d7) using the documentation about "Drupal 7 Panels integration guide (OG 7.x-1.x)". It describes how to create a node panel that detects when you are ...
6
votes
1answer
1k views

List Private Organic Groups Publicly without giving access to the node page?

I have a view setup to list my OG Nodes, those nodes and their greater content need to be private to only the group, but on the front end of the site I want to list some of the featured Nodes. As it ...
6
votes
2answers
3k views

Programmatically assign a node to an organic group

How can I programmatically assign a node to an organic group? I have tried the followings and non of them worked (assuming $target_group is the group ID that I want the $node to be assigned to): $...
6
votes
1answer
398 views

Dynamic menu linking to the forum associated with the current Organic Group

I've got two groups. I've got two forums belonging to each group. I've got a panel set up to display a custom view of forum topics that are defaulted to the group id, so that when given the group id ...
5
votes
3answers
7k views

How to make a OG private?

I want to make an Organic group private,to be seen only from members of this group. All the other will get an "Access denied" or something like that. For the time being,I can see the Group but not its ...
5
votes
2answers
6k views

OG groups: How to check if user is a member or not?

What code can I use to check if a user is a member of a group?
5
votes
2answers
4k views

How to create basic Organic Groups functionality with flags and references?

I've used Organic Groups for the past 6 months and found it to complex for my simple use case. Creating even basic views to show users of a group or content of a group turns quickly into "rocket since"...
5
votes
4answers
4k views

Non-Members of Organic Group can still view Node links

I'm on Drupal 7 with Organic Groups installed. I've created a Private Group for my IT Team, meaning that only members of that group can see the group content. The problem I'm seeing is that when I ...
5
votes
3answers
4k views

Getting a list/array of all organic groups a user is part of

I have been searching online for awhile and so far I have been unable to find any og functions that will give me an array or list of all groups a user is a member of. Does such a function exist? If ...
5
votes
3answers
1k views

Programmatically create a organic group

How would you programmatically create an OG group? I have tried node_save() but to no joy.
5
votes
2answers
1k views

How to limit search results based only on OG group membership?

I followed the tutorial about How to Create Custom Search Pages Using Just Views in Drupal 7. I have selected the blocks option instead of page option in views as I want to add it as a block in the ...
5
votes
2answers
2k views

Create Drupal Commerce stores as a Service

I'd like to leverage the power of Drupal Commerce to sell completely unrelated products and thus would like to create 2 different stores and brands. I could of course create a Drupal multisite but ...
5
votes
1answer
95 views

hook_menu_alter with Organic Groups

I want to change the menu button on my main nav bar depending if the user is or isn't a member of a group. I need one button to 'register' if the user isn't part of a group and that same button ...
5
votes
1answer
719 views

Group ID Filter in Block?

I want to show teasers of content posted to an OG group. I want public and private groups, so the user must have view access to that group to see the content. I have a Group (named "Group") and a ...
5
votes
2answers
503 views

Multisite with content sharing

The last couple of days I have been looking into Drupals multisite with content sharing. Got some great information like http://palantir.net/blog/multi-headed-drupal and http://munich2012.drupal.org/...
5
votes
2answers
140 views

Linking organic groups - or am I overlooking a better solution?

I'm attempting to use Drupal 7 with organic groups to create a network of groups for local affiliates of a national organization. Initially we want users in each group to be able to post private ...
5
votes
4answers
3k views

Organic groups automatic audience selection

I am working with organic groups. Within each group, permitted users are allowed to create their own pages. What my problem is that I need to set the audience for a new page automatically as the ...
4
votes
2answers
4k views

Using Views to List a Member's Organic Groups (7.x-2.3)

I am migrating a site from using OG 7.x-1.4 to OG 7.x-2.3. The migration seemed to go fine, but it broke the view that shows the current users group (i.e. groups the user is a member of). In the ...
4
votes
5answers
3k views

How to change OG “subscribe to group” link text?

I want to customize the link text, don't want to use string overrides module for this small job. In my template_preprocess_node() function I tried to change the #title element of the render array. ...
4
votes
1answer
1k views

OG: How to import 2 related nodes from CSV files using Migrate module?

I would like to import 2 related nodes (Organic Group and OG group content) from 2 CSV files using Migrate module but I cannot find a proper CSV migrate class example or module. I use Drupal 7. OG ...
4
votes
2answers
3k views

Show all group content of a specific group type

I'm having a very difficult time figuring this out, and I'm wondering if it's even possible. I'm using organic groups 7.x-2.x, and I have two "group" types: a student group type and a faculty group ...
4
votes
2answers
572 views

Adding a field without the field_ prefix (Drupal 7)

I am using the organic groups module which adds a field with machine name: group_audience to the user entity which can be seen at: /config/people/accounts/fields Somehow after install some other ...
4
votes
1answer
1k views

Customise message notifications in Drupal 7

I'm using organic groups with Drupal 7 and members receive email notifications when new content is posted to their group. However I can't find a way to modify: Email subject: New post in group Email ...
4
votes
1answer
234 views

OG homepage URL

My current/default group front page is groupname/node/nid But this is quite ugly, and when clicking on the site title the user is redirected to /group which does not display the group node but only ...
4
votes
1answer
230 views

Set (add) group role using Rules when organic group membership is updated?

Using Rules, I am trying to set a users group role anytime a new membership entity is updated, however it appears roles are not brought into scope for me to set data value nor "grant og role" All I ...
4
votes
2answers
2k views

What causes EntityMetadataWrapperException: Unknown data property?

I have added new field to my bundle in one of entity type. I used the Group audience as field type and Group Audience as widget type. This is to make the field to select multiple records. While ...
4
votes
1answer
521 views

Setting the form value to an organic group gid from validation hook of custom field widget (Drupal 7)

I have a custom widget which can be used for a group audience field. Instead of being a dropdown like the OG_AUDIENCE_WIDGET it is made up of three multiple select list, and the group which is ...
4
votes
1answer
312 views

I am looking for a friend's list for the Organic Groups module

I'm looking for a friend's list (kind of Google+ circles functionality) to work with the Organic Groups module. I wish to allow users to add tags to users that are their friends, e.g. work or family, ...
4
votes
1answer
726 views

How do you display a pane in an organic group?

I'm trying to create a menu of subgroups for organic groups in d7. I've copied the og list view and made a new view called og subgroups. I made a pane display and configured the pane's argument to ...
4
votes
1answer
992 views

Organic Groups - Group members list (with content profile) with views

http://ruh.kz/groups/ruhkz under the title - Участники группы - is placed a view block that displays members of this group. I've used a default view → og_recent_members, but it doesn't works for ...
4
votes
2answers
1k views

Join or create group on registration

When people register for my site I want them to either join an existing group or create a new one if it doesn't exist. They can only be a member of one group, and there's only one group type used on ...
4
votes
1answer
123 views

Why Can't Panels Select My Organic Groups?

I'm trying to create panels that are visible or show up on pages specific to certain groups. I'm using Organic Groups 7.x-2.7 on Drupal 7.34. So, our company's technicians would only see panels ...
4
votes
1answer
979 views

Using Entity reference + Views to create members select list

How can I use VIEWS + ENTITY REFERENCE to get list of active members specific to the CURRENT GROUP [created via organic groups]. I have created a view that list active members belonging to the group....
4
votes
1answer
1k views

How to make a calendar tab for every user showing user's events?

I followed the tutorial Calendars for Organic Groups - A simple tutorial for D6, and successfully created a calendar for every group in my site showing its events. I also managed to show the calendar ...
3
votes
2answers
5k views

How to show the count of members that belong to a group?

I have a view showing a list of nodes of type group. How do I set it up to show the count of members that belong to each group?
3
votes
2answers
217 views

What URL do I use to view an OG membership entity?

I see one can edit a membership entity by going to: group/node/204/admin/people/edit-membership/32 What is the URL to view the entity? I see the membership entity has a display mode that allows ...
3
votes
2answers
2k views

Organic Groups Views Contextual Filters

We have a country based site that needs to have an unfiltered view of various content types and a filtered view per country. We have implemented the countries with Organic groups but can't seem to get ...
3
votes
3answers
2k views

“Add content” button on related content node?

Let's say I have 2 content types "Shopping center" and "Shop". "Shopping center" is a OG group. "Shop" has node reference field "Shopping center". I would like to allow moderators to add shops to ...

1
2 3 4 5
15