Field Formatters for empty fields do not render with layout builder

Created on 3 November 2023, about 1 year ago

Problem/Motivation

Data within the field does not show on nodes with layout builder enabled. It does show in the Layout Builder form, but not on the node view. The field value is empty and that's when the data is not rendering using layout builder.

Steps to reproduce

- Either install any contributed entity reference formatter module or create a new custom entity formatter (i.e. to render a markup based on the need)
- Create a content type TEST with an entity reference field (Reference a node/term/form)
- Try to add that entity reference field as block with layout builder
- Select the custom formatter or the one using contribued modules from layout builder settings
- Create a content for the content type TEST and don't add any content within entity reference field
- The block will load empty data in it.

Proposed resolution

- The field formatter markup must be loaded on the page based on the formatter logic

πŸ› Bug report
Status

Active

Version

9.4

Component
Layout builderΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¨πŸ‡¦Canada gurjinder_pabla Canada 🍁

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024