node fields in twig template do not print after field_layout is enabled

Created on 28 October 2023, about 1 year ago

New D10.15 site

I can use a node template to arrange the layout of a node's fields for example {{ content.body }} {{ content.field_image }} etc

But if I enable experimental core module field_layout it seems that {{ content.body }} stops working ie nothing is printed, although {{ content }} still works.

It seems that once enabled, field_layout applies to all content types, ie there is no option to say enable field_layoiut for content type article but not content type basic page, or not node 45 etc

Is this expected behaviour? If so is there a way to render a node with a twig template using {{ content.body }} etc while field_layout is enabled?

💬 Support request
Status

Active

Version

10.1

Component
Field 

Last updated 2 days ago

Created by

🇬🇧United Kingdom juc1

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

Comments & Activities

Production build 0.71.5 2024