Ability to enable/disable layout per display

Created on 30 October 2019, over 5 years ago
Updated 16 May 2025, 3 days ago

Problem/Motivation

When you enable the field_layout module, the $build structure (renderable array representing the entity) changes. This affects the ability to render specific field in twig templates. You need use content._field_layuot.content.FIELD instead of content.FIELD. This leads to the fact that when you turn on the module, you must also edit overridden templates for all entities, not only for those where layouts will be used.

Proposed resolution

Add a check box to the field layout field, which will enable or disable the use of layout

Feature request
Status

Postponed

Version

11.0 🔥

Component

field_layout.module

Created by

🇧🇾Belarus sanfair

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024