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

Created on 28 October 2023, over 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 about 13 hours ago

Created by

🇬🇧United Kingdom juc1

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

Comments & Activities

  • Issue created by @juc1
  • Status changed to Closed: outdated about 2 months ago
  • 🇳🇿New Zealand quietone

    @Juc1, as you can see by the lack of responses here the Drupal Core issue queue is not the ideal place for support requests. The 'support request' option is there for filing support issues for contributed modules and themes. There are several support options listed on our Support page . This is 'Get Support' at the top of Drupal.org. There is also information about Drupal Slack , at 'Get Support -> Drupal Slack' also at the top of Drupal.org. You may get better replies in one of those places.

    Cheers

Production build 0.71.5 2024