Questions tagged [organic-groups]
Use it for questions about the Organic Groups module, not the Group module.
51
questions
8
votes
2
answers
6k
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
...
3
votes
2
answers
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?
6
votes
2
answers
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):
$...
5
votes
2
answers
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"...
9
votes
2
answers
8k
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,...
6
votes
2
answers
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
1
answer
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 ...
5
votes
2
answers
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?
4
votes
2
answers
5k
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 ...
1
vote
1
answer
219
views
Email all Organic Group members when a subgroup is created
I have an Organic Groups / subgroups structure where an Organisation is a group, a Property is a child group of an Organisation, and a claim is a child group of a property. So:
Organisation > Property ...
9
votes
4
answers
13k
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?
5
votes
4
answers
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 ...
3
votes
2
answers
1k
views
How to restrict access to private files to members of an organic group?
I have an organic group with a file field that stores its files in a private directory (sites/default/files/private/).
These files are visible only to members of that group. But, as is commonly known, ...
2
votes
2
answers
458
views
How to loop over a list of Organic Group users using Rules
When a user requests to join an Organic Group, I want to send an email to the group's admins. I've found this answer (https://stackoverflow.com/questions/16742925/how-to-send-an-email-to-drupal-7-...
2
votes
2
answers
3k
views
Programmatically assign new users to OG
My site is sub-divided into organic groups.
Group administrators are allowed to create new users, but I need a way to auto-assign the new user to the same organic group the creating group ...
-3
votes
1
answer
289
views
How can I programmatically add users? [closed]
How can I programmatically add users to an organic group?
8
votes
1
answer
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 ...
5
votes
3
answers
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 ...
4
votes
1
answer
733
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
2
answers
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
5
answers
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. ...
3
votes
1
answer
435
views
og_members block & og_nodes block won't display content
OG Version: 7.x-1.x-dev
My problem is that I can't get the og_members block & og_nodes block to show up under a group page.
Breakdown of my process:
A fresh install of D7, necessary modules
...
3
votes
2
answers
390
views
Setting OG with Services module
I am trying to POST a node to my site and make it group member.
POST body looks like this:
{
"title":"Update",
"type":"mesurement",
"uid":"4",
"og_group_ref": {
"und": [{
...
3
votes
2
answers
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 ...
2
votes
2
answers
185
views
How to apply flags retrospectively for group subscriptions using Organic Groups?
We've a large site running Drupal 7 with OG, Flag, Rules, etc.
OG uses a subscription model where you have to confirm you want to join a group (or leave a group) so we've decided to move to a Flag ...
2
votes
2
answers
1k
views
How to implement Facebook style Notifications for Organic Group posts? [closed]
I am using Organic Groups, Drupal Commons. If someone posts in group, then all the members should be notified like in Facebook with the number of notifications. Similar to this screenprint:
How can I ...
2
votes
1
answer
469
views
Changing group visibility needs group content to be resaved when group content visibility field is set to "Use group defaults"
Drupal Commons 7.x-3.2
Organic Groups 7.x-2.1
Content type: Mygroup
Field: Group visibility - value: Public
Content type: Mypost
Field: Group - default value: Mygroup
Field: Group content visibility ...
2
votes
2
answers
2k
views
Is there an hook_node_access() equivalent for users?
Is there any way in Drupal to control access to users like it's done in hook_node_access() for nodes?
I'm looking for something like hook_user_access() or hook_entity_access().
I have an entity ...
2
votes
2
answers
496
views
Get organic group name in a rule?
I want to create a rule that sends an email to all users of an organic group when content is posted to that group. In the email I want the name of the group to appear in the subject. I'm completely ...
2
votes
3
answers
2k
views
How can I use the logged in user's group ID as a contextual filter in Views?
I have Views, Context and OG installed on Drupal 7.
One of the default views is OG User Groups (/user-groups.) It is a content view that shows the user which groups they belong to.
I'm trying to ...
2
votes
1
answer
262
views
Group posts view
I am struggling to make a view to display the posts of a group. I have done the filter and chosen the fields I want to display, but I am struggling with the arguments. I am not sure what the path ...
2
votes
4
answers
812
views
How to make a Feature available only to certain Spaces? [closed]
For a Drupal 6 Open Atrium site (i.e., Features, Spaces, Organic Groups) I'm running, I've created some custom Features that only really apply to a handful of the hundreds of groups on the site.
As ...
1
vote
2
answers
477
views
How can the admin of a group edit all members default profiles? Is that possible? (Drupal 6 installation)
I need to do this in a Drupal 6 installation, with the Organic Groups module:
The user that has administrator rights within a group can edit all members default profiles.
I just want the admin of an ...
1
vote
1
answer
940
views
How to programmatically assign/add new groups to the OG in Drupal Commons 6.25
How to programmatically add new groups to Organic Groups in Drupal Commons 6.25? I have to do that for approximately 3000 groups. A preliminary test cycle that generates 50 will be the first step.
...
1
vote
1
answer
656
views
OG group content notification for group administrators
I'm using Drupal 7.12 with OG 7.x-1.3 and Rules 7.x-2.0.
There is a pre-installed rule that I'm using for group notifications which is "OG group content notification". This sends out an email to all ...
1
vote
1
answer
255
views
Creating new content/node
I want to do something very simple - create a content of a specific type when a user joins a group.
Unfortunately I can not find a simple way of how it should be done.
It can be done with rules so ...
1
vote
1
answer
66
views
How to use Views and Rules to activate a new node flag for existing OG members?
We have a flag for nodes called subscribe_og.
From this point in time users will click that flag to join, or leave, a group.
If you are not a member of the group, the flag says 'Join'. If you are ...
1
vote
0
answers
707
views
Get OG administrator users from Rules
I want to send an e-mail to all group administrators when a user joins a group.
Rules and OG come with this functionality out of the box, but unfortunately the default rule is set to only e-mail the ...
1
vote
1
answer
365
views
How to make an existing private OG group and its nodes public?
I use Drupal Commons 7.x-3.12 (uses OG 7.x-2.7). There, I have a private group with private posts. (Means, the group node uses privacy settings "Joining requires admin approval" and "Hide contributed ...
1
vote
0
answers
125
views
Create view of members inherited from OG Subgroups
I have the following OG Structure:
Organisation (group)
Property (subgroup)
Claim (subgroup content)
I would like to be able to list all the group members of a ...
1
vote
1
answer
661
views
Organic Groups for grouping users?
I have a project where I want to group users. So for example, say we have a role of 'King' and a role of 'Subject'. I will have a view where a King can see a listing of all of their subjects. When a ...
1
vote
0
answers
352
views
Context OG Reaction: Block does not appear on Views override pages
I'm using the module Context OG in order to use the condition "OG - Member Role" in a context.
The context by itself works without problems, until I override the node page with a view. The view by ...
1
vote
0
answers
34
views
Allow user to join group during registration [duplicate]
I am using D7 with Organic groups and Organic groups register. I have created the groups and when viewing a group node the link to 'Request group membership' is visible and working.
I wish a user to ...
1
vote
1
answer
2k
views
Automatically add users to the same group as their group admin
I am using the Organic group module. I created 2 groups on my site. To each group I assigned 1 user as group admin. Group admins have the permission to create users.
My question is how to ...
0
votes
1
answer
66
views
How do I display data basing on the permissions a user has within a group?
In a custom module I wrote, I implemented hook_og_permission() to define a new group permission.
/**
* Implements hook_og_permission().
*/
function logic_board_og_permission() {
return array(
'...
0
votes
2
answers
619
views
Drupal error. Drupal safe mode possible?
I added organic groups module to a drupal website. For some reason the website crashed and gives the following error:
Fatal error: Unsupported operand types in /home/content/39/7384539/html/salvare12/...
0
votes
1
answer
2k
views
Allow all OG members to view/edit all content
I'm pretty new to OG and I'm testing a collaborative intranet site at this moment with Drupal7 and Organic Groups 7.x-2.3.
It is a simple app for a small group where all the members know each other ...
0
votes
2
answers
2k
views
Organic Groups admin has can't edit roles and permissions in groups
I have a user who is an "administrator member" of a group called "Fancy group".
"Administrator members" of this group have permission to administer roles and permissions within the group.
but my ...
0
votes
2
answers
140
views
Why can I not find the og table after installing Organic Groups?
I am using Organic Groups module.
After installation why do I not find the og table?
I only have these five tables:
Here is a screenprint from the Drupal log with messages from around the time the ...
0
votes
1
answer
173
views
How to configure access for creating a custom LMS?
I am looking to create a LMS either in an existing Drupal install.
Anonymous users can browse course information and also preview certain Modules & Slides (see below). They will be able to buy ...