Subsites are a part of your website that can have its own menu, theme, custom CSS or anything else you want.
Subsites can be defined in a few manners:
- Marking individual nodes as belonging to the subsite.
- All pages in the subsite menu belong to the section.
- Defining paths that belong to a the section. This is done in the same way block visibility works. So you can use PHP too!
Subsites can have:
- their own page template:
page-subsites-{subsite-id}
orpage-subsites-{subsite-slug-name}.tpl.php
; - their own CSS file;
- their own theme, different from the default theme;
- their own menu.
Subsites can be:
- a condition in Context module;
- used to define block visibility.
That's all? Nope! Themers and module writers can react differently for each subsite using subsites_get_current
and subsites_get
.
Remark! Each path/node can have only one subsite. If multiple subsites' conditions apply for the path, the subsite with the lowest weight is the active one.
Similar projects
There exists a number of other projects that is designed to perform a similar task to this one. For reference here is a list of those I know about:
Credits
- davyvdb Original author
- James Andres Drupal 7 upgrade
- gisle
Any help with development (patches, reviews, comments) are welcome.
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. - Module categories: Administration Tools, Content Display, Site Structure
- 10 sites report using this module
- Created by davyvdb on , updated
- Drupal 10 is here!
There are no plans to upgrade this project to be compatible with Drupal 8/9/10, unless somebody new comes aboard and actively maintains the project.
- Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.