Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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 types and 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.
  • 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.

Activity

Total releases
1
First release
Aug 2025
Latest release
11 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Release date
1.0.x-dev Dev Aug 11, 2025