Domain Access
The Domain Access project is a group of lightweight modules that provide tools for running a group of affiliated sites from one Drupal installation and a single shared database. The module allows you to share users, content, and configurations across a group of sites such as:
- example.com
- one.example.com
- two.example.com
- my.example.com
By default, these sites share all tables in your Drupal installation. The Domain Prefix module allows for selective, dynamic table prefixing for advanced users.
The module uses Drupal's Node Access system to determine what content is available on each site in the network. Unlike other multi-domain modules for Drupal, the Domain Access module determines user access based on the active subdomain that the user is viewing, rather than which group or site the user belongs to.
Additionally, when a user creates content, that content will automatically be assigned to the currently active subdomain unless the user has specific privileges to be able to assign domain access. Under advanced setups, the ability to edit content for a specific subdomain can be segregated from the typical Drupal privilege to 'administer nodes.'
Domain Access can integrate with other Node Access modules through the multiple node access patch. The patch is provided in the download and has been tested to work with Organic Groups and Taxonomy Access Control.
Note: This module uses some advanced Drupal concepts and requires that you understand DNS configuration.
For more information about Node Access in Drupal, see http://api.drupal.org/api/group/node_access/6
Domain Access is PostgreSQL compliant, though Domain Prefix does not work fully on pgSQL in Drupal 5.
If you are looking for a module to provide subdomains to users and groups and do not need to affiliate content, take a look at Subdomain.
Extension modules
The Domain Access module works by itself and needs no additional modules. Included in the download are these helper modules that extend the features of Domain Access.
Included in the Domain package
- Domain Configuration -- Allows you to change select system variables for each subdomain, such as offline status, footer message and default home page.
- Domain Content -- Provides a content administration page for each subdomain, so that affiliate editors can administer content for their section of the site.
- Domain Navigation -- Supplies a navigation block with three themes. Creates menu items for each subdomain, suitable for using as primary or secondary links.
- Domain Prefix -- Provides a user interface for enabling select database table prefixing for use with subdomains. Not fully functional on pgSQL
- Domain Source -- Allows editors to set a primary source domain when links are written to content from other domains.
- Domain Strict -- Forces users to be members of domains in order to view content. This is a sample extension module that uses the API.
- Domain Theme -- Allows separate themes for each subdomain.
- Domain User -- Allows for the automatic creation of subdomains for registered users.
- Domain Views by mrichar1 -- Provides Views integration through a filter and default argument.
Contributed Modules
- Domain Menu by canen. Allows each subdomain to use separate primary and secondary links.
Developer Notes
New release: 5.x.1.4 cleans up some existing bugs. This release requires that you run Drupal's update script.
Drupal 6: The beta release is now available.
Credits and examples
- www.skirt.com
- www.activote.com
- www.dzone.com
- www.itgjamaica.com
- www.imb-uni-augsburg.de
- www.igolf.my
Development is sponsored by Morris DigitalWorks with an assist from DZone.
Developer's API is online at http://therickards.com/api/groups/Domain
Releases
| Official releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-1.0-beta2 | 2008-Apr-20 | 97.36 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.4 | 2008-Apr-20 | 98.65 KB | Download · Release notes | Recommended for 5.x | |
