Field Formatter Condition
374 sites
Security covered
This module allows you to add conditional logic to field formatters in Drupal. You can configure rules on the "Manage Display" pages to hide fields based on various criteria, such as whether another field is empty, the current user's roles, or specific page paths. It also provides a plugin system to create custom conditions.
This module is an imitation of the module "Field formatter conditions (D7)" (ffc).
Adds conditions to field formatters. Configuration happens on the "Manage Display" screens of every entity type on a per field basis when clicking on the cogwheel on the right.
Simple conditions and actions
- Hide source field when target field is empty.
- Hide source field when target field is not empty.
- Hide source field when current user has specific roles.
- Hide source field on specific pages.
- Hide source field when target field contains a specific string.
- Hide source field when target field doesn't contain a specific string.
- Hide link field if title is empty.
- Hide date field if smaller/greater then today/custom date.
- Hide if content from author
- Hide if checkbox is checked (in current dev version)
Own conditions can be programmed via plugin.
Please read the README.md file.