Questions tagged [group]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
10 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/...
0
votes
1answer
40 views

Programmatically remove content from a group

In order to add a node to a 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->...
-2
votes
0answers
35 views

“Display even if view has no result” option in returns unexpected results [closed]

On a Drupal 8.7.3 project, I have a view described as below: Format: Table. Display: Fields. The view displaying content of type: "xyz". The view has a relationship to the group where the "xyz" ...
0
votes
1answer
29 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
20 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
10 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
25 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: ...
0
votes
1answer
135 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
29 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
19 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
0answers
19 views

How to add a page referrer query parameter to a content create link

I am using the Open Social distribution which uses 'group content create blocks' to show a link where content can be created in which the current group (from the group context) is prepopulated in the ...
0
votes
0answers
14 views

How to make the group menu tabs also visible on group content display

I use the Open Social distribution, which uses the Group module. Within the context of a group (through the group ID which is available in the URL) different views pages show the group menu, which ...
0
votes
2answers
46 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
110 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
30 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
69 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
33 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
42 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 ...
0
votes
0answers
76 views

How to get the group entity for automatic entity label when creating nodes?

When creating a new node, you can assign it a group (group project). I need the group field's value to put into my node title. The problem is, there is no token to use within AEL for the group and ...
1
vote
1answer
51 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
336 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
28 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?
0
votes
1answer
162 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
237 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
54 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 ...
0
votes
0answers
12 views

Profiles and group integration

Iam Using Group module drupal 8 together with profile module. profile module does not add any permissions for profile creation for the group members. I need to restrict users of certain roles from ...
1
vote
1answer
94 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
71 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
390 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 ...
3
votes
1answer
472 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
34 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
42 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
279 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
51 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
115 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
108 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
56 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-...
1
vote
1answer
368 views

Programmaticaly remove a member from a group

Using the Group module, what is the function to remove a user from a group using its user ID and the group ID?
1
vote
0answers
91 views

Contextual filter with group ID and group name

I have a page view which is currently using a group id as a contextual filter. This is working. However, I am trying to achieve a 'friendly url', so the url should contain the group name, rather than ...
0
votes
1answer
27 views

Schema for group module

I have installed this module and I assume that this works not only in the regular content type but also in the group module. I was expecting that after enabling the module there is an option to map my ...
1
vote
1answer
105 views

How to restrict group node access to a user/member of an group?

I am using the Group module and I have created a group called "Group-Y" and group type "Group-type-Y". I also defined a group role name "Admin". Added an member with role "Admin". I have checked this ...
1
vote
1answer
64 views

How to show new nodes in a Group node view for users who are not a Group member?

In my Drupal 8, Defined New User Role: Manager Added one user into the role. I have created a group "Group-x" with corresponding group type "Group-Type-x". I have updated the permission(view, edit,...
0
votes
1answer
275 views

Why is migration lookup failing during synchronisation of Group entities?

On the basis of an RSS feed, I am required to create Group entities and Users out of the feed's items. Each item contains sufficient data: <item> <id>123</id> <title>An ...
1
vote
1answer
286 views

Grouping content types in group nodes

I have created 2 different groups and updated content(basic pages & article) using group module in my drupal 8 project. Currently it is listed in nodes tab of group. I have used an view module ...
1
vote
0answers
38 views

View of groups available to join

My site has different types of groups. Some allow registered users to join, others are by invite only and the existence of the group is not publicised. I want to make a view (or block) of groups that ...
1
vote
1answer
195 views

Restricting “view content” to members of a group

I would like to make a site with content that anonymous users can read, and private content that only group members can read. How do I achieve this? I have installed Group, but any group content I ...
1
vote
2answers
89 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 ...
0
votes
0answers
176 views

Create public or private nodes in groups

1) On my drupal 8 site, I use the "Group" and "Flags" modules. How do I create public or private nodes in groups? if the node is private, it is displayed only to the member of the group. if a node ...