This project is not covered by Drupal’s security advisory policy.

Layout Paragraphs Section Tabs shows Layout Paragraphs sections as tabs. An editor marks a section as a New tab with a tab title; sections right below it can Continue the tab above. Tabs that follow each other form one set of tabs, and anything that fits in a section can go in a tab.

Features

  • Tabs and accordion: a tab row on wide screens and an accordion on narrow ones, with ARIA roles and arrow-key navigation.
  • Links to tabs: each tab has a link (/page#tab-title), made from its title or set by the editor, per language. A link to anything inside a tab opens that tab too.
  • Search friendly: all tab content is in the page's HTML from the start, each tab title stays a heading, and find in page (Ctrl+F) opens a closed tab that holds the text.
  • Editing: the layout builder shows the tabs one at a time, whole tabs can be moved, and "Show all sections" shows the sections as usual.
  • Theming: a plain default look, a template to override, and a JavaScript event and API for theme extras.

Getting started

  1. Install the module.
  2. Edit your section paragraph type, check Use sections of this type as tabs and save.
  3. Edit a page, open a section and choose New tab.

See the README for theming and details.

Requirements

Supporting organizations: 
Funded the development of the initial version

Project information

Releases