group_purl
This module provides Purl plugins to support Group module.
With this module, it is easy to make a Group-based site that keeps the group context for views, adding content, and browsing through a group.
It provides plugins for:
- Group Provider -- Add the Group entity type to the Purl system
- Group Prefix Method -- Apply the group context to any path that begins with the matched Group prefix, but is not exactly the same -- this provides automatic context settings to nodes/content accessed via the group path, as well as rewriting all URLs on the page to prepend the group path.
- Group Context -- the main context provider that gets set when there's a match in Purl
- Views default_argument plugin -- automatically filter a view when the group context is active.
Dependencies:
- group-8.x-1.0-rc1 (or later)
- purl dev version from https://github.com/freelock/purl-d8 (was trying to support the efforts from ActiveLamp but they have gone dark...)
Configuration/Setup:
See the blog post.
Current status
The 3.x branch is updated for Group 3 and Drupal 11 support. The PURL module has several merge requests pending that will need to be applied that this module depends upon:
#3483727: Automated Drupal 11 compatibility fixes for purl - D11 and misc fixes -- required.
#2984482: Setting Purl Provider on Menu does nothing - Fix for group context on menu links
#3546298: Show modifiers on Modifiers page - Fix for PURL modifiers page -- useful info but optional
Right now tests are passing locally, but failing on Drupal.org because Purl does not have #3483727 in a release yet. Once we have passing tests I will publish a 3.0.0 version!