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). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). 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 allows you to create conditions for the Context module based on the values of entity fields. You can trigger reactions when an entity, such as a node or user, has a specific value in a field, or even when a field is empty. It supports various core field types and reference fields like taxonomy terms, nodes, and users.

Context Entity Field provides a context condition based on field values in an entity.

This module creates a condition for Context. The condition causes a reaction if an entity (e.g. a node, user, ...) contains a field with a specific value. All field types available in core (number, boolean, text, ...), taxonomy term, node reference and user reference are supported. You can also activate a context when a field has no value.

Requirements

F.A.Q.

Q: How do I display a block in a sidebar when the current node contains a specific taxonomy term?

A: Create a new context and add a new condition Entity field, select entity type Node and select the taxonomy term reference field used in your node. Insert the term ID into the value field. Now you can add a new reaction Blocks and add the specified block to the sidebar. Save the context and check if it works.

Q: How do I display a block in a sidebar when no value is specified for a field on the current node?

A: Create a new context and add a new condition Entity field, choose entity type Node and flag Empty field. Add a new reaction Blocks and add the specified block to the sidebar. Save the context.

This module is sponsorized by Agavee G.m.b.H..
Many thanks to zJoriz for the review of documentation.

Activity

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

Releases

Version Type Release date
2.0.0-alpha4 Pre-release Aug 19, 2025