Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Theme Negotiation by Rules

Security covered Under active development 141 sites

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

Drupal 9–11

Ask your assistant about Theme Negotiation by Rules

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
7 months ago
Releases (12 mo)
1
Maintenance
Active

Releases

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