support the token module

Created on 13 May 2010, almost 15 years ago
Updated 17 February 2025, about 2 months ago

It would be pretty useful if a token for the site were made available. I'm not completely sure how this would work, maybe it's not possible..

The specific use case is for creating multiple pieces of content that would have the same path alias. Lets say I want to have an 'about' page and a 'staff' page for each of the sites. If I just use standard pathauto, I'd end up with clashing aliases like

  • site1/about
  • site2/about-0
  • site3/about-1

If I can change the automatic alias to be something like '[current-site]/[title-raw]' then when I set each about page to be published to a specific site, I get what is expected:

  • site1/about
  • site2/about
  • site3/about

There are a number of issues here I suppose:

  • Only works cleanly with path based sites. Not sure how it could work for a subdomain based site
  • Only works if each piece of content published to a single site. Don't know how to handle publishing to multiple sites

Thanks,
Chris

Feature request
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇺🇸United States cjdavis

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇪Germany Hydra

    As this module has not been maintained for some time, I am closing this ticket as “outdated”. A new version of sites which is architecturally and technically unrelated to the Drupal 6 and Drupa 7 versions will be published here soon.
    Thank you for your contribution.

Production build 0.71.5 2024