Option to output fields beside a layout

Created on 14 May 2025, 1 day ago

Problem/Motivation

In the entity_ce_display, we want to have an option to output fields additionally to the layout. The idea is to give us better control over field rendering in our frontend components while also being able to place blocks in a layout. Currently we can either output fields or a layout.

E.g. Placing a view block with related nodes, while still controlling the node rendering using the node type's default frontend component.

Proposed resolution

The node ce output should look similar to this:

{
    "element": "node-page",
    "created": "1736421462",
    "title": "My custom page",
    "body": "<p>The is my content</p>",
    "sections": [
        {
            "element": "drupal-layout",
            "layout": "layout_onecol",
            "content": [...]
        }
    ]
}
Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇦🇹Austria arthur_lorenz Vienna

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

Comments & Activities

Production build 0.71.5 2024