Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Follow-up from #2693589: Refactor the way GroupContent exposes link relations and templates
Basically, we need a [group-content:pretty-path] token or something along those lines so people can use Pathauto to generate pretty paths such as group/1/members/127
instead of group/1/content/127
.
We also need to document this better:
/**
* (optional) The key to use in automatically generated paths.
*
* Will be added to the entity tokens so modules like Pathauto may use it.
*
* @var string
*/
public $pretty_path_key;
Comment | File | Size | Author |
---|---|---|---|
#4 | group-2762145-4.patch | 20.46 KB | kristiaanvandeneynde |
|
Comments
Comment #2
kristiaanvandeneyndeComment #3
kristiaanvandeneyndeComment #4
kristiaanvandeneyndeThis adds many tokens for GroupContent entities, including the pretty path key. It also adds a Pathauto configuration to make use of it, but does not update existing sites. I'll write a change record for this so that sites may choose to opt into the new Pathauto pattern instead of having it forced on them.
Comment #6
kristiaanvandeneynde