Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Domain Microsite

Security covered No further development 35 sites

Part of the Domain ecosystem · 53 projects

This module allows you to create sub-sites within your main Drupal site, managed as distinct "microsites" under a parent domain. It uses path processing to handle requests and generate links specific to each microsite, treating them like separate domains for content management.

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.

Ask your assistant about Domain Microsite

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
12
Tracked since
Jan 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.x-dev Dev 8–9 May 6, 2023
1.0.0-beta3 Pre-release 8–9 Jan 26, 2023