Drupal blocks can be selectively shown or hidden based on different criteria. In core, these are Content types, Roles, Pages, and Language.
But there is not option by the values of the fields of the content types / nodes. The module Entity Field Condition will allow you to show / hide blocks according to the type of content and the value of some field of that content.
This module provides a Condition plugin that checks to see if a particular entity bundle has a field with a specific value.
Issues
As with all contributed modules, when considering submitting an issue:
- Read the documentation (two or three times is better). Don't forget the home page.
- Review the existing issues list. (Don't forget to select "<- Any ->" for the "Status" field.)
- Gather all the appropriate information. This may include (but is not limited to):
- Drupal version.
- Browser type and version.
- Database type and version.
- Error messages, if any.
- Module settings.
- Submit the issue. If other modules are involved, you may need to submit the issue to those modules as well.
- If you go to provide a patch use the following naming convention:
[entity_field_condition]-[short-description]-[issue-number]-[comment-number]-[drupal-version].patch
And please don't forget to use the Issue Summary Template to report an issue, if you need help to understand how the issue queue works, see the Getting Started in the Issue Queue video.
Project information
- Seeking co-maintainer(s)
Maintainers are looking for help reviewing issues. - Module categories: Administration Tools, Content Display, Site Structure
- 1,183 sites report using this module
- Created by FluxSauce on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 8.x-1.x-dev updated 2 Jun 2023 at 04:02 UTC