Enable Field Group to be used with Layout Builder

Created on 12 October 2020, over 4 years ago
Updated 16 February 2023, about 2 years ago

Problem/Motivation

At present, if you customize the display of a node with Field Group and then enable Layout Builder, the field groups are no longer displayed.

Steps to reproduce

1. Add a field group to the Article content type.
2. Enable Layout Builder for the Article content type.
3. The field group is no longer shown on the Article page.

Proposed resolution

Have field groups appear in the Layout Builder UI and let them be used to group fields.

Remaining tasks

User interface changes

API changes

Data model changes

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡―πŸ‡΅Japan ptmkenny

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡«πŸ‡·France hassebasse

    + 1

    Anyone, please?

  • πŸ‡ΊπŸ‡ΈUnited States justcaldwell Austin, Texas

    I agree πŸ’― that this would be great, but I suspect it's going to be pretty difficult to implement.

    In the meantime, we use the method described here β†’ to use Layout Builder and Field Groups together.

    For example, assuming you're using Layout Builder to manage the "Full content" view mode for your entity:

    1. Create a new view mode (let's call it "Secondary") for your entity, and configure your field group(s) at Manage display > Secondary.
    2. Install/enable ctools β†’ if necessary
    3. Add the ctools block " Entity view (Content) β†’ " to your "Full content" layout and choose the "Secondary" view mode.

    This will render the field group you built in the "Secondary" view mode in your "Full content" layout. Not the most intuitive workflow, but it works. Hope that helps somebody.

  • πŸ‡«πŸ‡·France hassebasse

    Thank you @justcaldwell

    Will concider it, or maybe I stick to DS also in D10, but I really would like to go to Layoutbuilder.

  • πŸ‡¬πŸ‡§United Kingdom wotney

    +1

  • πŸ‡¦πŸ‡ΉAustria maxilein

    +1

  • πŸ‡―πŸ‡΅Japan ptmkenny

    Please stop adding +1 to the issue. If you want updates, use the follow button.

    If you want this to happen, please write the code and contribute a merge request. As stated on the project page, Field Group is "Considered feature-complete by its maintainers.", so if we want this feature, someone needs to step up and write it.

  • πŸ‡±πŸ‡ΉLithuania vibrasphere

    +1

  • πŸ‡¦πŸ‡²Armenia murz Yerevan, Armenia

    Want to share an idea of how the Field Groups can be represented in UI on the "Manage Display" page when the Layout Builder is enabled.

    Actually, in the layout builder mode the order of field groups doesn't matter, so we can just render a plain list of groups there, linked to the Field Group edit form.

    And on the Field Group edit form, we can add a list of available fields to choose with checkboxes indicating which fields are included in the group.

    And then, Field Group can provide blocks that render these fields.

    So, we're just moving the field group settings to a separate form, keeping the logic the same. What do you think about this idea?

Production build 0.71.5 2024