Sites is a Drupal 6 module that segregates content and various settings based on domain, subdomain, or other path parameter.
Current features:
- Views that see content across all sites
- Views that see content on a single site
- Different active theme for each site
- Different primary and secondary links menus for each site
- Different front page for each site
- Set up sites based on domain, subdomain, path prefixes, and anything else that the PURL module can handle.
Forthcoming:
- Rules integration
- Features integration
- User integration
- Organic Groups integration
Sites was originally conceived as a way to make it easy to create multi-site Drupal configurations without the problems and complexities incurred by using Domain Access. Sites is a less-articulated solution than Domain Access: it has fewer features at present, and does not integrate as deeply into the Drupal access stack, but is consequently more stable. Most importantly, it avoids rebuilds of the node_access table, which can be slow (and, in the case of very large sites, can even cause your servers to grind to a halt).
There are several considerations that came into play in the decision to write the module. First, we wanted to be able to create multi-site installs of Drupal wherein some views could show content existing across sites, while others could discriminate between those sites and show only content from the current site. If we simply created a new folder under /sites, there would be no clean way to know at the level of the controller (nodeapi, Views, etc) what site was being used to access content. Furthermore, if we decided to segregate content into different databases, it would be difficult to share that content across sites (the easiest alternative would probably be to publish feeds, which seemed like far more trouble than should be necessary).