Field group rendered as component is not present in the entity mapping when entity needs to be rendered as component

Created on 8 May 2024, about 1 month ago
Updated 14 May 2024, about 1 month ago

Problem/Motivation

Currently, it is possible to create a field group that will be rendered as SDC, but when the entity type that contains that field group needs to be rendered as a component, it is not possible to map the field group.

That could be really useful for atomic design, where the title of a card can contain the author's picture, title, and a date.

The SDCs:

Card Header SDC

  • Title
  • Image
  • Date

Card SDC

  • Header
  • Image
  • Content

In the Drupal manage display, you will need to create a field group rendered as Card Header SDC and map the values, and then render the node as Card SDC.

Steps to reproduce

I reproduced the error using the umami profile which already has at least 2 SDC.

  1. Install SDC Display and Field Group.
  2. Go to edit "Full content" viewmode for the Article content type.
  3. Create a field group to be rendered as a SDC.
  4. Create a couple of fields and map them in to the field group.
  5. Save it.
  6. Go back to Manage display "Full content" viewmode and enable "Render using a component" in the "Full content".
  7. Search the field group in the mapping.
  8. It does not appear, just the fields.

Proposed resolution

Make the field groups to appear in the mapping.

✨ Feature request
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡¨πŸ‡΄Colombia jidrone

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

Comments & Activities

Production build 0.69.0 2024