In Drupal 7, I regularly used the Vertical Tab option to organise my fields into groups consisting of a list of vertical tabs. All this required was to create a set of groups and define each as a Vertical Tab.

In Drupal 8, it appears that this now requires a three step process:

  1. Create a Tabs group (set to Vertical).
  2. Create one or more Tab groups (set to Vertical)
  3. Nest each of the Tab groups inside the Tabs group.

This had me confused for a while. It would be useful if this could be added to the documentation. Happy to add it to the documentation page myself if this behaviour is as designed.

Comments

millionleaves created an issue. See original summary.

frederickjh’s picture

Interestingly I searched for an answer to this last year and did not find it. Thanks @millionleaves for creating this issue as it helped me. Now if I can figure out how to get the config that Drupal 8 forces into the right-hand block into vertical tabs all will be well.

nils.destoop’s picture

Status: Active » Closed (works as designed)

The 3 step version also existed for drupal 7 and was the correct way to create a vertical tabs group. The only difference was that drupal core had some default vertical tabs on forms. If no tabs wrapper was given, fieldgroup pushed everything in the group that core provided. As core removed the vertical tabs, this fallback is not possible anymore. (see also #2652642: Allow to position the group in the advanced (sidebar) column)
When you create a tab group without a tabs wrapper, fieldgroup is giving a warning that you need to create a wrapper group.

frederickjh’s picture

@zuuperman Thanks for the info. I however was not getting any warnings when I tried to add tabs without adding a tab group. I just got a white area to the left where I expected the vertical tabs to show.

I have already looked at #2652642: Allow to position the group in the advanced (sidebar) column and have not found that issue helpful, as it is the opposite of what I want to do. I want to get settings out of the advanced sidebar and back into vertical tabs. That issue deals with adding tabs to the advanced sidebar.

Thanks for your help!
Frederick