Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Theme Negotiation by Rules

129 sites Security covered Drupal 9–11
View on drupal.org

This module allows site builders to display different themes on a Drupal site based on defined rules. These rules can consider various conditions like URL patterns, user roles, language, or content types to determine which theme to apply for a specific page.

Description

The Theme Negotiation by Rules module allows a site builder to show pages using different themes based on rules. Each rule contains the theme, and the conditions to be met in order to show the that theme. Conditions are condition plugins, such as page path pattern, current user role, current language or even, the type of the node, when the page is a node canonical page. Meaning that custom conditions may be added by contrib or custom modules, such as Route Condition.

Rules can be ordered by priority. The topmost rule whose conditions are met on a certain context (page, user role, etc) wins, and the page is displayed with the rule's configured theme. Rules can be reordered using drag and drop.

Usage

  • As a site builder, visit the Appearance page and click the Theme rules tab.
  • Use the Add theme rule action button to add new rules.
  • You can disable a rule so that it will be ignored on theme negotiation.
  • A rule with no conditions is also ignored on theme negotiation.

Similar modules

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

Tracked releases
2
Tracked since
Sep 2025
Latest release
6 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.2.1 Stable 9–11 Feb 24, 2026
1.2.0 Stable 9–11 Sep 8, 2025