Questions tagged [organic-groups]
Use it for questions about the Organic Groups module, not the Group module.
707
questions
-3
votes
1
answer
289
views
How can I programmatically add users? [closed]
How can I programmatically add users to an organic group?
0
votes
2
answers
51
views
View showing a list of tagged nodes related to term reference field
Drupal 7
Taxonomy vocabulary = Company activity (Activity 1, Activity 2, Activity 3 ….). This vocabulary has an OG group field.
Content type 1 = Company with an entity (terms) reference field ...
0
votes
0
answers
44
views
prevent any user that doesnot belong to an organic group, to access any node outside his group with code
i have made the following custom module, in order to prevent any user that belongs to group 1, be able to view or edit a node that belongs to group 2. Still if one knows the url of the node, manages ...
0
votes
1
answer
23
views
Entering views result to field through rules
When I create a new OG, I would like the user with the least number of OG subscriptions automatically to be added to this group. So I created a views block where I count and least the user with the ...
2
votes
2
answers
74
views
Automatically creating an organic group for each new user
I would like to automatically create an organic group for each newly registered user. I checked all its settings, no such option with organic groups module, then I checked the rules module but no luck ...
2
votes
1
answer
174
views
How do I check Organic Groups group permissions from a custom module?
I'm trying to show or hide a button based on if a user has permission to post content to a group or not, but I don't seem to be able to call the og_user_access function from my custom module.
I've ...
0
votes
1
answer
573
views
Organic Groups vs Group - on D7 vs D8?
I've done some research on this question, posted it here without any feedback, and have left messages for OG owner (amitaibu) without any response, so hopefully I can solicit useful feedback here.
I'...
0
votes
1
answer
74
views
How to send an email to an Organic Group admin for every comment of their group? [closed]
Drupal 7.x
Organic Groups / Rules 7.x-2.9
What is the best method to send an email to the 'Administrator Member' role of a group every time a comment is posted in their group?
I am looking to ...
1
vote
1
answer
78
views
Forum should just show up in groups
I would like to have, on my Drupal 8 site, a forum that can be visited only by the members of the group XY; all the other users should not see the forum.
In the permissions I can't find one for ...
0
votes
1
answer
283
views
How do I find the role id from an og group role name?
I need to retrieve the rid to assign the 'student' role part of an og group.
I found this post in regards to user roles How do I find the role id from role name?
$rid = array_search('student', ...
0
votes
1
answer
113
views
Og Membership entity not created when assigning new node to Group; works when editing node
Using Organic Groups 7.x-2.9, I have two content types:
- Series (Group)
- Event (Group Content)
When creating an Event, a users has a select list of the Series they can assign this Event to (...
-2
votes
2
answers
129
views
Creating content with content type: only Title is displaying on first click not the other fields
I have a content type to submit events/workshops etc for a conference.
The fields I have are like this:
Label; Machine name; Field type; Widget; Event Title; title; Node module element;
Fields:
...
0
votes
0
answers
95
views
How to send email to a specific organic groups role using rules?
I'm trying to set up a Rule to send an email to organic group members with a specific og role, in this case 'captain', when new group content 'Ticket' is created.
I've been able to set it up for all ...
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(
'...
1
vote
1
answer
71
views
How to create a group page when creating a new group?
When I create a new group (using the Organic groups module), I want to use the Rules module to create a new group referenced page.
I can create a new page using the Create new entity action, but I ...
2
votes
2
answers
109
views
How to send an email using Rules to everyone in an Organic Group based upon a date field?
I have an OG content type with a date field. When the date in the field comes up, I want to use Rules to send an email to everyone in the group using the other fields (title/body/og name) in the node. ...
1
vote
1
answer
264
views
How to create access permissions system similar to Organic Groups access, using Eck entities
There currently still is not a working version for Organic Groups access control, compatible with ECK entities.
My current site contains entity type project and entity type project content.
The ...
1
vote
2
answers
130
views
Display content by specific groups of users
Is it possible to display content by a group of authors without using a group module? I like the group module, but it's much more complex and robust than what I need it for.
Synopsis: We need to ...
1
vote
1
answer
39
views
How to add selected users to OG Group from field selection when creating group
I have an OG and a field that lists users with checkboxes. Is there a way using Rules, to add the selected users as group members when group is saved/updated?
0
votes
1
answer
22
views
Is it possible to create a list of pages in a view even if a user doesn't have access to those pages?
I'm creating a set up in Drupal 7 using Organic Groups and the Subgroups module where there is a Company group, and each company can have multiple Project groups. I'd like to allow users that have ...
1
vote
1
answer
36
views
Why subscribe/unsubscribe button in the custom entity named group cannot appear?
I have created a custom render in group_module.js exactly as the example Rendering Entities with the exception of the line items['group/%'] = { instead of items['team/%'] = {. All other content nodes ...
0
votes
1
answer
119
views
How do I check if a node is an organic group in an access callback of a custom module?
In Drupal 7 with Drupalgap, I have created a custom module in order to make a block. I have defined hook_block_info() and hook_block_view() as it is necessary.
What I want is making this block visible ...
1
vote
1
answer
43
views
How to alter existing page of a node that is Organic Group and add Two links above
i am using Drupal 7 with og support and also the og corresponding modules (og, entityreference, services_menu) inside DrupalGap.
As can be seen from the picture i want to add some links(drawed in ...
0
votes
1
answer
41
views
How to limit a user to specific OG groups based on user role?
In a quite complex project page, I have several user roles (from Drupal core). Further, the page has an internal area which is built upon Organic Groups (OG). There are a lot of groups available, each ...
0
votes
1
answer
54
views
How to get firstname in autocomplete when adding new members in og group?
I have created the group in og.
When adding the user for the group, In autocomplete its been displaying the user's email ID.
function custom_form_alter($form,&$form_state){ if($form['#id']== 'og-...
0
votes
0
answers
39
views
Organic Groups Views
I would like to create a View which shows the Organic Group hierarchy in a side bar, see below for hierarchy. Also upon selecting content title from this sidebar, then shows the node content in 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 ...
0
votes
1
answer
40
views
List organic group members from the current user group on his profile page
I am new to organic groups, I ran into a problem, I am a member of some organic group, I need to list other members of same group on my profile page, Trying to display it using views but no luck :(, ...
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 ...
0
votes
0
answers
20
views
List other og members from the current user group on his profile page
I am new to organic groups, I ran into a problem, I am a member of some organic group, I need to list other members of same group on my profile page,
I am working on drupal 7 with Organic group 7.x-...
1
vote
0
answers
112
views
One content type doesn't show up for one role on content page
Weird bug with a relatively complex D7 setup using admin_views: on the admin/content page, nodes of one content type ("event") don't show up at all, but only for a specific role ("editor"), even ...
1
vote
0
answers
38
views
Can the following be done with Organic Groups?
I have a menu tab called "College" and what I'm trying to do is, when one user logs in he will be able to see information about the college regarding him.
So I have 2 colleges called CIT and UCC and ...
4
votes
2
answers
3k
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 ...
0
votes
1
answer
28
views
Drupal Commons make group content visible for anonomous users?
I have a Drupal (7.52) Commons (commons-7.x-3.40) website which currently requires users to log-in to see published content.
Now I need to publish content so it is visible to non-authenticated users....
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 ...
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 ...
0
votes
2
answers
343
views
How to create multi level subgroups in organic groups?
I Need to create multi level of subgroups in organic groups like
like a tree. I don't know how to create using organic groups. Can anyone suggest.
1
vote
3
answers
1k
views
How to create a content-type with "sub-pages" that are default and/or custom per node
I'm in the process of planning a Drupal 7 site-build that will make use of what we're calling 'sub-pages' or 'minisites.' Essentially, as you can see in the wireframe below, we'll have a page for each ...
0
votes
1
answer
128
views
Will groups with more number of users cause the page to load slower?
Anonymous page takes 1 to 2 secs to load
After the successful login, we are showing the same page but with some menu. I have disabled that menus too. But the page load takes 10 secs to load with same ...
1
vote
1
answer
99
views
Help required to set up multisite using organic groups (OG module)
I would like to create different multisite using organic groups in drupal. Each organic group would be a subdomain or domain. How can I achieve this functionality? I do not want to use domain access ...
0
votes
1
answer
17
views
How to allow users programatically to post and view posts regardless of they are trusted contact or not in drupal commons
All is in the title, actually users can only posts privately to theirs trusted contacts and sees posts of trusted contacts.
I don't need such restriction in my project and want to bypassing this ...
1
vote
1
answer
293
views
Organic Group OG membership relationships
I'm trying to display on a views, only the nodes which the user is part of the Organic group.
I have a field og_group_ref in my content type which relate to a group.
What I want is for each user, ...
0
votes
1
answer
21
views
How to set the Organic Group while saving a node based on the node's current language
We want to use a hook_node_presave to set the Organic Group (OG) field on the basic page content type based on the node's language. We have created several OGs using nodes and each one is assigned a ...
0
votes
2
answers
111
views
Non-admin user gets empty results when viewing other user data with views
I've been searching around now quite a while and couldn't find a solution that worked for me. So, here's my question:
I created a View that basically just a list of all users on my page. The view ...
1
vote
1
answer
59
views
How to Create Membership Groups for Products?
I'm exploring if the latest release of Drupal Commerce (using Commerce Kickstart 7x-2.38) will work for my Apparel eCommerce requirements. We need membership to groups (which will be corporate ...
1
vote
0
answers
31
views
Organic Groups not allowing group members to view content
I have the following configuration set up for Organic Groups (2.x) :
(1) A content type defined called 'Organic Group'. It's defined as both a Group and a Group Content, because I need the ability ...
1
vote
0
answers
74
views
Unable to create new users with Organic Groups module installed
I have Organic Groups version 7.x-2.9 installed on a Drupal 7.50 install.
When I try to add users from /admin/people/create I get a white screen and the error
PHP Fatal error: Call to undefined ...
3
votes
1
answer
42
views
How to populate field X with value of field Y in Organic Groups?
I want to use rules in order to populate Organic Groups field X value with the value of field Y. Keeping in mind these fields are Organic Group fields.
Field X is a 'long text & summary' field, ...
0
votes
1
answer
168
views
Assigning entity (node) to group (og) programmatically
How to assign an entity to a group programmatically? I have referred to this question however it doesn't seems to work:
$values = array(
'type' => 'my_type',
'uid' => $user->uid,
...
1
vote
0
answers
21
views
OG Menu not appearing in the Parent Menu options [closed]
OG Menu not appearing in the Parent Menu options after I selected an OG