Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 295775

Ability to enable/disable layout per display

$
0
0

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


Viewing all articles
Browse latest Browse all 295775


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>