Module Description
The Read More Extra Field module replaces the default "Read more" link (displayed when nodes are rendered as teasers) by an extra field.
Why and when is this module helpful?
* Fields appearance order is easily configurable via the display settings. It is thus easy to move the Read more link before or after any other field of your entities.
* The Read More extra field is not intrusive. It can be enabled on any fieldable entity of your choice, and you can decide to keep the default Read More link.
* The default Read More link only appear in Teaser mode. It can be annoying when you create custom view modes. The Read More Extra Field is available in all view modes.
* The Read More Extra Field module comes with some additional useful settings : It is possible to configure the Read More link text, or add CSS classes.
* This module can also be used to easily hide the default Read More link when it is not needed.
Important:
* This module has a lightweight 8.x-1.x version and a more feature-3.x version. See version section below for details. We'll keep on supporting both in the future!
* Upgrading from 1.x to 3.x requires manual steps, if you overwrite readmore-extrafield.html.twig: If you upgrade from 1.x and have overwritten readmore-extrafield.html.twig in your theme, you have to align your template file overwrites to reflect the new readmore-extrafield.html.twig in the module directory as variables and structure were required to change. 3.x uses field templates as wrapper!
* 3.x adds various settings to the field formatter settings form, but settings don't work in layout_builder yet due to an upstream bug in extra_field_plus: #3069861: [3.x] Settings do not show up in layout_builder. This is FIXED now, so please help testing!
Dependencies
* 1.x: The Field core module is required.
* 2.x, 3.x: The Field core module is required + Extra Field + Extra Field Settings Provider
Configuration
* Visit admin/config/readmore_extrafield to enable the Read More Extra Field on specific entities. Any fieldable entity can be configured separately.
* Configure the display of your entities to make the Read More link visible or hidden on any available view mode.
Version
We will long-term-support 8.x-1.x as lightweight version and 3.x as feature-rich version in the future. Anyway, there is no automatic upgrade path. Manual steps required when up- or downgrading!
* 3.x: Drupal 9 compatible version of 8.x-2.x - See upgrade information above (#3183520: Make the upgrade from 1.x to 3.x as smooth as possible.)!. Major readmore-extrafield.html.twig variable changes!. Uses field templates and prepared field formatter settings form.
* 8.x-2.x: Based on Extra Field + extra_field_plus to allow definition as plugin, provide settings and field markup. DEPRECATED, use 3.x!
* 8.x-1.x: Lightweight version, simply based on a .twig file. No further dependencies, no settings.
* 7.x-1.x: Drupal 7 version
Development proudly sponsored by German Drupal Friends & Companies: webks: websolutions kept simple (https://www.webks.de) and DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)
Why and when is this module helpful?
* Fields appearance order is easily configurable via the display settings. It is thus easy to move the Read more link before or after any other field of your entities.
* The Read More extra field is not intrusive. It can be enabled on any fieldable entity of your choice, and you can decide to keep the default Read More link.
* The default Read More link only appear in Teaser mode. It can be annoying when you create custom view modes. The Read More Extra Field is available in all view modes.
* The Read More Extra Field module comes with some additional useful settings : It is possible to configure the Read More link text, or add CSS classes.
* This module can also be used to easily hide the default Read More link when it is not needed.
Important:
* This module has a lightweight 8.x-1.x version and a more feature-3.x version. See version section below for details. We'll keep on supporting both in the future!
* Upgrading from 1.x to 3.x requires manual steps, if you overwrite readmore-extrafield.html.twig: If you upgrade from 1.x and have overwritten readmore-extrafield.html.twig in your theme, you have to align your template file overwrites to reflect the new readmore-extrafield.html.twig in the module directory as variables and structure were required to change. 3.x uses field templates as wrapper!
* 3.x adds various settings to the field formatter settings form, but settings don't work in layout_builder yet due to an upstream bug in extra_field_plus: #3069861: [3.x] Settings do not show up in layout_builder. This is FIXED now, so please help testing!
Dependencies
* 1.x: The Field core module is required.
* 2.x, 3.x: The Field core module is required + Extra Field + Extra Field Settings Provider
Configuration
* Visit admin/config/readmore_extrafield to enable the Read More Extra Field on specific entities. Any fieldable entity can be configured separately.
* Configure the display of your entities to make the Read More link visible or hidden on any available view mode.
Version
We will long-term-support 8.x-1.x as lightweight version and 3.x as feature-rich version in the future. Anyway, there is no automatic upgrade path. Manual steps required when up- or downgrading!
* 3.x: Drupal 9 compatible version of 8.x-2.x - See upgrade information above (#3183520: Make the upgrade from 1.x to 3.x as smooth as possible.)!. Major readmore-extrafield.html.twig variable changes!. Uses field templates and prepared field formatter settings form.
* 8.x-2.x: Based on Extra Field + extra_field_plus to allow definition as plugin, provide settings and field markup. DEPRECATED, use 3.x!
* 8.x-1.x: Lightweight version, simply based on a .twig file. No further dependencies, no settings.
* 7.x-1.x: Drupal 7 version
Development proudly sponsored by German Drupal Friends & Companies: webks: websolutions kept simple (https://www.webks.de) and DROWL: Drupalbasierte Lösungen aus Ostwestfalen-Lippe (OWL), Germany (https://www.drowl.de)
Module Link
Project Usage
223
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
The Read More Extra Field module aims to replace the default 'Read more' link with an extra field in order to easily configure the appearance order, make it available in all view modes, and provide additional settings like custom text and CSS classes.
Data Name
readmore_extrafield