Domain boolean field
This module adds a new field type for multi-domain websites that allows editors to set a simple on/off status for content on a per-domain basis. This is useful for configuring things like featured content differently across your various site domains.
A custom field for multi-domain sites. This module adds a new field type that allows site editors to set a boolean (on/off) value for each active domain on the website.
Features
This module's basic functionality is to provide a new field type called "Domain Boolean." When you add this field to a content type, a list of checkboxes is automatically generated, with one checkbox for each active domain on your site. This allows editors to easily configure a node's status (e.g., "featured," "promoted," "hidden") on a per-domain basis. A typical use case is to allow a single node to be "featured" on the homepage of one domain while remaining in a standard list on others.
Post-Installation
How does this module actually work once I install it? Follow these steps for an overview of the configuration process:
- Enable the module: After installation, enable the "Domain Boolean Field" module from the Drupal admin interface (
/admin/modules). - Add the field to a content type: Navigate to
Structure > Content typesand select the content type you wish to modify. Click the "Manage fields" tab and add a new field. Select "Domain Boolean" from the list of available field types. - Configure the field: On the field settings page, you can set the label and help text for the field, which will be displayed to editors on the node edit form.
- Use the field: When creating or editing a node of that content type, you will see a list of checkboxes for each of your active domains. Simply check the box for each domain where you want to apply the boolean status.
Additional Requirements
- Domain Access: This module is a complementary add-on to the Domain Access module. Domain Access must be installed and configured for this module to function, as it provides the core API for managing domains.
Recommended modules/libraries
- Views: To leverage the domain-specific status of your content, you would typically use Views to create custom content lists or blocks. For example, you can create a View that displays only the "featured" content on a specific domain.
Similar projects
There are no contributed modules on drupal.org that provide this exact functionality out of the box. This module fills a gap for developers who need a simple, custom-configurable solution for setting per-domain metadata on content.
Supporting this Module
This section is a placeholder for any custom donation or support links.
Community Documentation
This section is a placeholder for links to tutorials, videos, or demo sites.
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
Releases
| Version | Type | Core | Notes | Release date | |
|---|---|---|---|---|---|
| 1.0.x-dev | Dev | 9–10 | This is the first developer release of the Domain Boolean Field module | Aug 11, 2025 |