Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Context entity field

Security covered Under active development 966 sites

Part of the Context ecosystem · 11 projects

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.

Ask your assistant about Context entity field

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
5
Tracked since
May 2024
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-alpha4 Pre-release 9–11 Aug 18, 2025
2.0.0-alpha3 Pre-release 9–10 May 9, 2024
2.0.0-alpha2 Pre-release 9–10 May 9, 2024
2.0.x-dev Dev 9–11 May 9, 2024
2.0.0-alpha1 Pre-release 9–10 May 9, 2024