Drupal Groups Module How to create, display a list of related group content nodes in Views

In Drupal 8, we have implemented a membership-type website that will control and display views or lists of contents according to a member's membership group. The Drupal Group module seems to be the most ideal solution https://www.drupal.org/project/group.

Normally, in this scenario, one will set up the group module, content types, permissions, etc. like described below:

  • Setup the usual Group Types, IDS, and permissions
  • Managed to make the authoring, viewing permissions work thru usual Group Module settings and configurations
  • Managed also to complete the other permissions of each Member or moderator being able to add, delete members and contents

However, we seem to find documentation lacking in setting up the following requirements:

  • Create in Views a list of Group Content nodes that will display in a sidebar
  • List of nodes will only display group content of member logged-in and currently viewing the page
  • List of nodes will dynamically be displayed according to which member is logged-in, depending on his/her group membership currently logged-in and viewing

To quickly set-up a functional, dynamic block of node contents:

  1. Create a View, with page and block
  2. Choose any filters and formats as needed
  3. Under Advanced > Relationships > Choose Content group content
  4. Filter by plugin > whichever content type will be displayed and filtered
  5. Require this relationship, which enables hiding items that do not contain this relationship

Other, related, useful references that might help further:

Leave a Comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
To prevent automated spam submissions leave this field empty.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
10 + 7 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.
Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now