All of the fields are moved into the "MORE SETTINGS" underneath the editor. In some cases we are building content types that use Gutenberg but still require a handful of fields. It would be great to group fields into sub-sections so that the field list is not overwhelming when opening the "MORE SETTINGS" section.

I'm not sure if it would be possible to use the normal form display below the Gutenberg editor (preferred) or at least some way to group fields. Currently if you group any of the fields it more or less breaks the display.

Here's the image how it was before.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nickBumgarner created an issue. See original summary.

pvasener’s picture

I have a similar issue. If I choose the 'Sidebar Details' field group type, the group is nicely displayed in a collapsible tab in the right sidebar of the edit form. But, if you select 'Details', the collapsible tab is diplayed at the top of the gutenberg editor space instead of inside the 'More Settings' collapsible space (Which is what is expected, right ?)

pvasener’s picture

A screenshot may actually be clearer than my words...

creatile’s picture

Same bug for me Fields inside field groups won't be displayed in More settings using the latest field group module in drupal 9

jofitz’s picture

Version: 8.x-1.9 » 8.x-2.x-dev
Status: Active » Needs review
FileSize
702 bytes

This patch transfers any (parentless) field groups into the "More Settings" section.

jofitz’s picture

FileSize
720 bytes
990 bytes

If the field that has Gutenberg applied to it is in a Field Group then the node edit page does not display correctly, so this patch does the same as the previous and removes the field from its Field Group.

jofitz’s picture

FileSize
523 bytes
1.52 KB

gutenberg_form_node_form_alter() must run after field_group_form_alter() so adding gutenberg_module_implements_alter().

marcofernandes’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

szeidler’s picture

I experience a couple of regressions, because of that change. It seems because of the form alter order changed with `gutenberg_module_implements_alter` a couple of other form_alter implementations are not working as expected anymore. For example Scheduler was previously shown in the sidebar automatically, but now it's displayed beneath the Gutenberg editor in the "More settings" fieldset.