Demo: EBT Accordion / FAQ
EBT: Accordion / FAQ Drupal module overview
EBT Accordion / FAQ can be useful for pages with a lot of information, so you can collapse text blocks and user can expand needed text block.
https://www.drupal.org/project/ebt_accordion
composer require drupal/ebt_accordion
It uses Paragraph module and it's easy to edit content for EBT Accordion. It's based on jQuery UI Accordion plugin:
Default styles
Styles settings
You can select different styles for EBT Accordion:
Text only style
Plus/Minus icons on the left
Plus/Minus icons on the right
Collapsible setting
You can also disable "Collapsible" setting, then at least one section wil be always opened.
Collapsible and Closed settings together
You can select "Collapsible" and "All Closed" settings together, then you will have all sections closed by default.
All Opened setting
Select "All Opened" setting if you need to show all sections/answers by default.
Active section setting
You can select which section should be opened by default. Use "Active section" field to write order number of section. Active section setting is zero based, it means it starts to count from zero. So if you need to open 3rd section by default, you need to type "2" in Active section field.
Disable setting
Disable checkbox allows to disable Accordion functionality.
Height: content (default) setting
We have three options for content height:
- content (default option)
- auto
- fill
Height: auto
Auto option allows to use the maximum height of tallest section as height for all other sections.
Height: fill
Fill options allow to display sections with scrollbars.
Thank you!
Thank you for using EBT module! I will be glad for any ideas for EBT modules: