Group Sites is a way to leverage Group to divide your site into microsites.

This module allows you to use any context provider that returns a Group context to set said Group as a global context value. You can then choose one of several access policies to activate when a Group entity was either found or not found.

An example would be where you use a context provider that derives a Group entity from the currently active domain. Then you would deny all Group access aside from the one that was tied to the current domain, effectively splitting one Drupal installation into multiple websites.

To make setting up your site easier, the module also comes with an admin mode that you can toggle from the admin toolbar. While this mode is on, you can use the site as if Group Sites wasn't even installed.

Features

  • An admin mode allowing you to bypass the restrictions so you can more easily set up your website
  • A few access strategies available out of the box
  • Full compliance with Drupal core's context provider system (ContextProviderInterface)

Additional Requirements

Depends on the Group module.

Can be coupled with Domain to allow full entity access and query access per domain. Use the Group Context: Domain module for this.

Similar projects

This module differs from projects such as Domain Group or Group Domain in that it does not care what your source of selection is. It could be Domain, but it will still work equally well if you decide to base your Group context on a path prefix, user language or whatever. Essentially this module abstracts the microsite logic and makes it available for a multitude of use cases.

Supporting this module

Drop me a line if you want to help fund (feature) development.

Supporting organizations: 
Sponsored initial release

Project information

Releases