Domain Microsite allows creating "microsites" at sub-paths using the Domain module/ecosystem.

Every domain microsite is just a domain entity with extra configuration for a microsite base path and parent domain.

Management of a domain microsite is the same as a regular domain.

Domain Microsite essentially does this:

  1. Determines if a domain microsite is requested based on the incoming path and sets it as the active domain.
  2. Uses path processing to remove microsite base path for the incoming path (the page requested) and prepend microsite base path for outgoing paths (generated urls on a page).

For other modules and forms with path settings, use a path value "relative" to the domain microsite regardless of the label.
Some form fields have labels that display a site url before the field.
To prevent this module from being bloated, it does not make form alterations to change any labels to match the actual domain microsite url.
(The only exception is the Domain records page.)

Installation

  1. Enable module as usual.
  2. Then go to [admin/config/domain] to add a domain record.
  3. At least one regular domain record must already exist. If it doesn't, create one first then return to add another new domain.
  4. Ignore hostname and machine_name because they will be overridden with auto-generated identifiers by this module.
  5. Check "Make domain microsite" and enter values for "Parent domain" and "Base path".
  6. Save to add a domain microsite by path.

Caching issue

Domain currently caches routes a certain way that doesn't work well with Domain Microsite.
See https://www.drupal.org/project/domain/issues/3359253 and use patch #2 to make route caches work.

Project information

  • caution Seeking new maintainer
    The current maintainers are looking for new people to take ownership.
  • caution No further development
    No longer developed by its maintainers.
  • Project categories: Site structure
  • Ecosystem: Domain
  • chart icon56 sites report using this module
  • Created by drpldrp on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    There are currently no supported stable releases.

Releases