Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Field fallback

Security covered Under active development 80 sites

This module allows you to set a field as a fallback for other fields. If a primary field is empty, the module will automatically use the value from the designated fallback field. This is useful for scenarios like using a main image as a fallback for a teaser image if the teaser image is not provided.

Description

Field fallback allows you to configure a field as fallback. When no value was provided, the value of the fallback field will be used. This module works with all types of fields.

Example use case

When you have multiple image fields, header image and teaser image. Where the header image is shown on the node page and the teaser image in the overview. When a user is creating a node he doesn't have to fill in the teaser image. It will fallback to the image uploaded in the header image field. When the image shown on the overview doesn't comply, e.g. uploaded portrait image and image style is configured landscape, the user can override that image by uploading one in the teaser_image field.

How to configure

Create or edit a field. The module adds a dropdown with all possible fallback fields.

Drupal 8–11

Ask your assistant about Field fallback

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

  • field Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
1.0.0 Stable 8–11 Sep 13, 2024