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;
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kristiaanvandeneynde created an issue. See original summary.

kristiaanvandeneynde’s picture

kristiaanvandeneynde’s picture

Issue summary: View changes
kristiaanvandeneynde’s picture

Title: Create a "pretty path' token for GroupContent entities » Add Pathauto support for group content entities
Status: Active » Needs review
FileSize
20.46 KB

This 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.

kristiaanvandeneynde’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.