This module provides a field type that allows you to create content with an expandable "read more" section. It uses two formatted text fields: one for visible content and another for content that is initially hidden but can be revealed with a click. This functionality is implemented using accessible HTML elements, with options to customize its appearance and behavior.
This module adds a field type that makes it easy to add content with a 'read more' link. It does so by providing 2 separate (formatted) text-fields, that allow to place content in either the visible or the (initially) hidden textfield. You are free to leave the hidden field empty if you don't need it, in that case it will act as a regular formatted text field.
The default implementation uses the details and summary elements to handle the show/hide logic. It has decent browser-support (The details element polyfill is included to enable browser-support for IE10/11 and other browsers), is keyboard-accessible and prevents for complicated and error-prone custom logic. However, if you feel the need you can override the default twig template and supply your own implementation. You can also use CSS to change the appearance of the details-element, without losing functionality.
Ask your assistant about Read More Field
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
- field Drupal core
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 | |
|---|---|---|---|---|---|
| 8.x-1.2 | Stable | 8–10 | Oct 25, 2023 |