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
1 answer
45 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 ...
NedRise's user avatar
  • 13
0 votes
2 answers
372 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 ...
lolcode's user avatar
  • 874
0 votes
1 answer
571 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'...
Erik Britt-Webb's user avatar
0 votes
1 answer
349 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 ...
dercheffe's user avatar
  • 151
2 votes
1 answer
460 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 ...
JamesWilson's user avatar
  • 2,138
0 votes
1 answer
72 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. ...
FolioGuru's user avatar
2 votes
2 answers
281 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 ...
Zeroplexer's user avatar
1 vote
1 answer
49 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 ...
marklame1's user avatar
1 vote
1 answer
87 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 ...
maGz's user avatar
  • 245
0 votes
1 answer
1k 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 ...
Elie Masaad's user avatar
0 votes
1 answer
189 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?
Mayari's user avatar
  • 169
1 vote
1 answer
835 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....
user avatar
1 vote
2 answers
2k 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)?
Greg Topaloff's user avatar
0 votes
0 answers
21 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 ...
Blake Morgan's user avatar
1 vote
0 answers
75 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 ...
Kevin's user avatar
  • 27.7k
1 vote
1 answer
463 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 ...
Angus's user avatar
  • 258
1 vote
0 answers
269 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 ...
MrPaulDriver's user avatar
  • 1,027
2 votes
1 answer
2k 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 ...
theuni's user avatar
  • 845
6 votes
1 answer
2k 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 ...
theuni's user avatar
  • 845
0 votes
0 answers
46 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 ...
theuni's user avatar
  • 845
0 votes
1 answer
156 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, ...
Kenyon Johnston's user avatar
1 vote
1 answer
687 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 ...
Jonathan's user avatar
  • 1,118
0 votes
1 answer
96 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 ...
jsidigital's user avatar
0 votes
1 answer
290 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/...
wrigamer's user avatar
0 votes
2 answers
223 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 ...
SomebodySysop's user avatar
2 votes
1 answer
150 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-...
Dolf Andringa's user avatar
2 votes
1 answer
1k 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?
Dave S.'s user avatar
  • 31
1 vote
0 answers
129 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 ...
John Rey Tanquinco's user avatar
0 votes
1 answer
49 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 ...
John Rey Tanquinco's user avatar
1 vote
1 answer
484 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 ...
Prasanth R's user avatar
1 vote
1 answer
125 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,...
Prasanth R's user avatar
0 votes
1 answer
433 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 ...
Paul's user avatar
  • 1,173
1 vote
1 answer
514 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 ...
Prasanth R's user avatar
1 vote
0 answers
39 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 ...
tomf's user avatar
  • 21
1 vote
1 answer
241 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 ...
tom's user avatar
  • 11
1 vote
2 answers
128 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 ...
Christia's user avatar
  • 1,637
0 votes
0 answers
238 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 ...
ZenImagine's user avatar
4 votes
2 answers
4k views

How can I programmatically add members to a group?

I am trying add members to a group programmatically using Groups module in Drupal 8, and I am doing the following to achieve this: use Drupal\Core\Entity\ContentEntityBase; $roles = array('test_role')...
ekta's user avatar
  • 211
1 vote
3 answers
5k views

How to get group ids by ids of elements of group content?

I use the Group module and I have created several groups and assigned several nodes as content of these groups. For example, I know id of some node. How can I figure out which groups contain this ...
Yakimkin Roman's user avatar
2 votes
0 answers
138 views

How to show the actual node on a group-content page when using the Group module?

Creating a new group-content in Group module on Drupal 8 generates a normal node without any "live" context to the group. So viewing this node does not allow the group-actions block to work. If you ...
Martin Przybylek's user avatar
0 votes
1 answer
432 views

How do I get a parent-group alias as token for the Pathauto module?

When a user sets his groups alias to lets say "mynewgroup" you can view the group at www.example.com/mynewgroup. How to set pathauto presets to create www.example.com/mynewgroup/mynewgroupcontent as ...
Martin Przybylek's user avatar
0 votes
1 answer
132 views

How do I show the members in a block, contextually filtered by the currently logged in user?

In my project every group member will only ever belong to a group; some group members have the Group Administrator role. I would like to create a view block to satisfy this story: As a user with the ...
Chris Rockwell's user avatar
1 vote
1 answer
53 views

How to define profile types per group type in the Group module?

I am working on a site where I am just starting to work with the Drupal 7 version of the Group module. The groups and roles stuff is fine but can I define a profile type per group type? eg. Group ...
KLM's user avatar
  • 11
1 vote
1 answer
2k views

Hook into Group module

I'm creating a module for Drupal 8 that will auto fill some content in a add content page. Now I need to have a way to group different contents in one group. I found the Group module that does the job,...
JimmyD's user avatar
  • 410
0 votes
1 answer
464 views

Paginated list of group members

I want to output the membership of a drupal group, but limiting the number of members shown, instead of outputting all members at once, (that i can do with the code bellow). $members = $group->...
José Trindade's user avatar
2 votes
1 answer
2k views

Programmatically add new role to group member

Trying to update a group membership to add an additional role, but cannot find any help on how to do this. I want to add the role of "manager" to all owners of "client" type groups, using the ...
jlscott's user avatar
  • 201
0 votes
1 answer
104 views

User is notified when new content is created using Rules

I created two groups in one group type. Job Post Business Each group has its own content type(same label) and group permissions. User Story: "As a user(Job Post) I would like to be able to create ...
John Rey Tanquinco's user avatar
3 votes
1 answer
4k views

How can I programatically load a group?

I have written this code to render a list of profiles (using the Profile module). It works fine. // render profiles $accounts = \Drupal\user\Entity\User::loadMultiple($uids); $storage = \Drupal::...
dbj44's user avatar
  • 4,734
0 votes
1 answer
82 views

Creating a block to show content in the same group of the current node

I would like to create a block that in node/x displays the links to all the nodes in the same group as x. I created a view of Content, a relation of Group but no contextual filter allows me to filter ...
Angus's user avatar
  • 258
1 vote
1 answer
70 views

How to assign define role to group creator in groups created with the Group module?

I am using the Group module. Whenever a new group is created, member is added to that group with role none. I want to assign a role to a group when a user creates a group. How can I do that?
Suresh Kumara's user avatar