Fallback Formatter provides a field formatter that can attempt multiple formatters and the first one that returns output wins.
- Download Fallback Formatter from Drupal.org.
- Install it in the usual way.
Setup field formatter:
- On
admin/structure/types
choose the content type you want to use for fallback formatter, for example Article. - Select Manage Display and go to
admin/structure/types/manage/article/display
. - Choose a field you want to use and in formatter settings define Fallback as the format.
- In formatter settings under Enabled formatters check the formatters you want to use.
- Under Formatter processing weight you can order the formatters, the first one that returns some result will be used.
- Bellow the Formatter processing weight you can define settings for each enabled formatter if available.