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:
- Determines if a domain microsite is requested based on the incoming path and sets it as the active domain.
- 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
- Enable module as usual.
- Then go to [admin/config/domain] to add a domain record.
- At least one regular domain record must already exist. If it doesn't, create one first then return to add another new domain.
- Ignore hostname and machine_name because they will be overridden with auto-generated identifiers by this module.
- Check "Make domain microsite" and enter values for "Parent domain" and "Base path".
- 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
Seeking new maintainer
The current maintainers are looking for new people to take ownership.No further development
No longer developed by its maintainers.- Project categories: Site structure
- Ecosystem: Domain
56 sites report using this module
- Created by drpldrp on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.
Releases
Development version: 2.x-dev updated 16 Sep 2024 at 19:55 UTC
