This module provides a field formatter that uses the HTML `<details>` and `<summary>` tags. This allows you to display content with a visible heading that can be clicked to reveal or hide the details, making it useful for FAQs or question-and-answer sections.
This module will provide output in details with summary tag.
The <summary> tag defines a visible heading for the <details>element. The heading can be clicked to view/hide the details.
The <summary> element should be the first child element of the <details> element.
Reference: https://www.w3schools.com/tags/tag_summary.asp
Usage:
This module would be good for a 'question and answer' or 'faq'...etc
Installation:
Install with Composer: $ composer require 'drupal/details_summary_field_formatter'
Note:
Clear the Drupal cache after saving the module configuration settings.
Ask your assistant about Details Summary Field formatter
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 2.0.0 | Stable | 8–10 | Mar 5, 2024 |