https://github.com/droath/field_condition
Drupal 8 entity field condition plugin.
https://github.com/droath/field_condition
Last synced: 2 months ago
JSON representation
Drupal 8 entity field condition plugin.
- Host: GitHub
- URL: https://github.com/droath/field_condition
- Owner: droath
- Created: 2017-01-03T21:38:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T17:17:36.000Z (over 8 years ago)
- Last Synced: 2025-01-09T10:36:31.280Z (over 1 year ago)
- Language: PHP
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Field Condition
## Description
The module exposes an entity field condition which can be configured to hide or show a block based on the host entity field value. Not only does this condition work with blocks, it can be used with any contributed module that utilizes the condition plugin system. Currently this only works for node entities, but there are plans to expand this concept to other entity types.
## How to Use
- Enable the `field_condition` module.
- Navigate to the block layout page `/admin/structure/block`.
- Click **Place block** or **Configure** an existing block.
- Under the **Visibility** settings you'll see the **Entity field** section, click to show configuration options.
- Configure the necessary field condition, then click **Save**.