Questions tagged [group]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
30 views

How do I add a user to a group?

I am using the Drupal 7 version of the Group module. I found this Drupal 8 code which adds a user to a group, and I can't find anything similar for Drupal 7. use Drupal\Core\Entity\ContentEntityBase; ...
0
votes
0answers
10 views

How do I accepted requested membership without bulk operation?

Using the group module when navigating to group/[id]/members you are present with a list of members, and a bulk selector for updated membership/role status. I am able to create a similar page using ...
0
votes
0answers
6 views

View to display Contents types of groups only if user is member or owner of that group

I am trying to create a view where I can show contents of groups only if user is a member but what I can do is either show all groups where the user is member or show all content of a group. I want to ...
0
votes
1answer
16 views

How do I get the list of permissions?

I am trying to use the group method hasPermission(permission_label, user). I found an example that is the following: $group->hasPersmission('administer members', $user) I would like to know ...
0
votes
1answer
20 views

How can you get the route name/path of groups?

I am new to Drupal 8. I am working on groups module and want to assign different themes to different groups.So i need route name of groups. how to find route name of groups. Thanks in advance. /** ...
0
votes
0answers
27 views

Group id not shown when view is empty in Drupal 8?

I am new to Drupal 8. I make custom view field (programmatically) and pass session variable to it.Session variable contain group id. The problem is that when the view is empty i mean no content in ...
0
votes
1answer
32 views

Getting session variable in view contextual filter drupal 8

I am new to Drupal 8. I get group_id in session variable just like that $_SESSION['groupbysession']['group_id'] = $path[2];. now i want to get that session variable in view Contextual filters.I have ...
0
votes
0answers
9 views

A different set of terms for each group?

I am considering to use de group-module to organize nodes by department. Each department has different taxonomy terms to classify their nodes. The goal is to have them describe their howto's and ...
0
votes
1answer
26 views

drupal 8 modifying the menu items path

I work on an drupal 8 application that use the group module with the restriction of only one group per user. i want to be able to modify the menu items so that the id of the user's group is always in ...
0
votes
1answer
22 views

Explicitly passing argument to local action for access check

I'm using the group module, and in a custom module I'm trying to create a local task that will bring you directly to the create page for a particular group content type. My goal is to skip the create ...
0
votes
0answers
18 views

How to repair a field storage configuration problem for a group?

After a cron run, the following message is appearing in watchdog. Drupal\Core\Field\FieldException: Attempt to create a field field_description that does not exist on entity type group. in Drupal\...
1
vote
0answers
26 views

Sub groups under groups

Anybody has idea about how we can have Sub Groups under Drupal Group? This module; https://www.drupal.org/project/group, will manage grouping of content, users.... perfectly. But we are looking to ...
1
vote
1answer
35 views

Using group and rules modules to automatically create group for new user

I am using the Group (not OG ...) and rules modules for this task. I created group type, Applications Support. Then I created a rule, After saving a new user. Under the rule, I used the following ...
0
votes
1answer
25 views

How to normalize / resolve membership ID to all account UID per group_content

I'm trying to add the owner's membership to every GroupContent. By default ownership is only identified by the Account ID. It seems a Normalizer and/or custom resolver is necessary. Beyond my ...
-2
votes
1answer
44 views

Webform Group Member Composite

I need to create a Webform element that has a list of group members, each with their own checkboxes and text fields ('job description'). I figured out how to display checkable group members through a ...
-2
votes
1answer
53 views

How to make drop down for parent group in view have the name instead of the id as the parameter?

I have a relationship in my view to the content group content, and then I put in an exposed filter for the parent group. But the exposed filter works with the id of the group, I want it to work with ...
0
votes
0answers
13 views

Entities of type Group and Group_Type are deleted when running drush updb or drush rr

I am using the Group module combined with a feature module. The feature module includes two group types in the implementation of hook_default_group_type as can be seen in here: https://pastebin.com/...
1
vote
1answer
138 views

Programmatically remove content from a group

In order to add a node to any group in Drupal 8, I use the following code. $group->addContent($node, 'group_node:article'); Now, for removing content from a group, I have tried $group->...
0
votes
1answer
134 views

Where in the MySQL database schema is the URL alias for a group relation?

I am building a report outside of Drupal that pulls data from a Drupal 8 database. The report shows titles of different nodes and I want to link those titles to the web page for that content. This ...
1
vote
1answer
102 views

How do I add a new group permission?

How to add new group permissions? describes how add new group permissions when using the Drupal 7 version of the module. function [mymodule]_group_permission() { return array( 'schedule ...
0
votes
0answers
13 views

Webform attached to group content node shows no results

I am able to attach a webform to a group content node, but then a strange thing happens. My form follows the event registration example. After registering, no results show in the group content "...
0
votes
1answer
40 views

How to use the YML structure of routes to control access to Group Content

I am using the Group module and would like to leverage each Group's permissions in my module's yml files. I have a module.permissions.yml with something like tam_api.group_gid_members_uid: path: ...
3
votes
2answers
3k views

Programmatically get the results of a view

Using the group module in D8, I have the below view with machine name: group_members_per_group Machine Name of: (Member account) User: Full Name is: field_user_full_name (Member account) User: ...
1
vote
1answer
35 views

How to display articles based on group combinations of various group types?

I looked at the group module. Defining permissions based on user and entity memberships would suit my needs very well, but sometimes I would need a combination of various group memberships to define ...
0
votes
0answers
26 views

How to “always relate” nodes to group

In OG in D7, there was a field that was set to say this node belongs to group x. With the Group module in D8, if a user creates a node through the normal /node/add/page link, it will not be linked ...
0
votes
2answers
117 views

How are global roles synced with group roles?

How are global roles synced with group roles in the Drupal 8 group module? I expect that the module would either: Create a group roles in each group type for each global role and/or one of the ...
0
votes
1answer
336 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
1answer
38 views

Relate Content to a Group feature when creating a node outside a group

In my drupal site, I'm using the Group module. My problem: I created a regular Drupal node type, let's call it userpost I created a group type called "usergroup" The content type "userpost" is ...
2
votes
1answer
174 views

Use node edit form layout for other entity types

The node edit form got a nice overhaul for Drupal 8's default admin theme, whereby a lot of the metadata fields like Revisions, Meta Tags, URL Aliases, Publish status, Promote status, etc are moved ...
0
votes
1answer
39 views

Groups and Private File Visibiility

I have created a content type Agenda - the body is paragraphs - there are two types: (1) Text and public files and (2) Private Files. The fields work properly - Anonymous cannot see Private Files. ...
2
votes
2answers
82 views

How to translate Groups in a multilingual site?

I have created a new grouptype and added some fields to have a "site". And then created a new group with this grouptype. I edited the overview site with some information. Now I would like to translate ...
1
vote
1answer
45 views

How to create entity relation of counselor to client?

I'm trying to create a relation in D8 between a counselor and clients. The counselor would have to record counseling hours for each client. I've looked at the group module, even building the ...
1
vote
1answer
61 views

View Members Tab of a Group

So I've had my first taste of Drupal Group, and it looks really promising so far. Now I may be missing something totally, but if my user (testuser1) is a member of a group with 2 other members, why ...
0
votes
1answer
775 views

Filter a view by the Group ID of the current logged in user

I have been looking for an answer for 3 days with no success. Looks like this is a common requirement among plenty of Drupal 8 projects with not a single answer accross the internet about how is ...
0
votes
1answer
47 views

Display a view block on multiple pages

I have a block that I want to display on /group/*. That is working, but it is also displaying the block on /group/*/editwhich is pretty annoying and unwanted. Is there a way to restrict that?
-1
votes
1answer
324 views

How to insert the title of the group in a message?

I created a custom module using the example in: https://www.drupal.org/project/message When a node is created, it is associated with a group: https://www.drupal.org/project/group Here is my module....
1
vote
2answers
550 views

How to get the id of a group when using the Group module?

I'm using the Group module. How can I get the id of a group whose a user is a member (I have the user id)?
0
votes
0answers
20 views

HTML Around Group Title

When I create a group, the HTML around the group title isn't parsed. Even if I change those tags, it isn't parsed. Is there some filter I'm unsure of the whole page is running through or is this some ...
1
vote
0answers
62 views

Can a view show all the content of groups to which a user has access?

This may have been answered before, but I am not sure how to search or ask for it. My Group knowledge is very limited, and I am not seeing a way to do this in Views at a glance. When a user logs in ...
1
vote
1answer
227 views

Select groups to relate the node to directly in the node creation form

An admin who wants to relate a node to a group can go to the group and then create a node from there (/group/{id}/node/create) . The node is then assigned to the group. Or she can assign a already ...
0
votes
0answers
90 views

Mixed entity types. How to create a view of nodes and groups?

I want to create of view of nodes and of groups (group module). Being different entity types I am not sure if this possible. Is there a method by which this could be done? There is no specific ...
1
vote
1answer
578 views

Custom route using access check error with arguments

I have a custom route that needs to check if a user can create a certain group_node:article content inside a group (from the group module 8.x-1.0-rc2). The setting is as follows: mymod.routing.yml ...
5
votes
1answer
888 views

How to add custom entities to group types?

I'd like to add my custom content entity to my group types, just like the module's "group node" plugin does already with nodes bundles. Has anyone done this? There does not seem to be much progress ...
0
votes
0answers
36 views

Performance of group module with thousands of groups

I am planning to make use of the group module and let site users create and maintain their own groups. This will lead to thousands of groups. I am wondering whether site performance would become a ...
0
votes
1answer
67 views

How to send an email once a new member is invited using the Group module?

I am using the Group module on a Drupal 7 project. I would like the system to send an email notification once a new member is invited. I'm assuming I could use the Rules module to perform this task, ...
1
vote
1answer
391 views

Show a different view mode depending on role

Using the Group module, when a user views a group, I want to use a different view mode depending on whether the user is a member of the group or not. Conceptually, this is almost identical to showing ...
0
votes
1answer
54 views

Group Module: Join & Remove users from user account/profile 2?

I added an entityreference to the user's Account so users can select what group they want to join (checkboxes). They check it and via a rule, it automatically adds them to that group. I did this for ...
0
votes
1answer
171 views

Redirection after adding new groups and gnodes using group module

I am using Group module and Drupal 8. After adding a new group, the page will be redirected to the corresponding group page(ie. /group/5) but I want to change it to be the group edit page (ie. /group/...
0
votes
2answers
137 views

Add Field as Entity in Group Module

The group module is an alternative to the og module. The og module allows you to assign permissions to fields per group. I would like to be able to do the same thing with the group module. It ...
2
votes
1answer
84 views

How are access permissions prioritized when multiple modules implement them?

I have the Group module setup where I only allow view permission for group content to group members, so I have closed groups. But additionally, I want groups to also make some content public to non-...