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.
Project information
- Module categories: Site Structure
- 575 sites report using this module
- Created by Dimiter on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Drupal 10 support.
Development version: 8.x-1.x-dev updated 25 Oct 2023 at 13:04 UTC