A module to control when the teaser Read More link appears in Drupal 7.

There is no mechanism in core to decide if the read more link should appear. This means that this link will always show no matter if there is additional content to display. This module tries to overcome this issue by allowing administrators to determine how to handle this link in relation to both the content type and individual fields.

The module allows you to add Read more links to other supported view modes (RSS feed, Search results, etc) or even other supported entity types. Particularly useful if you use panels or views and either programmatically add additional view modes or use other contrib modules to provide these.

Usage

By default, the module does not do anything, it must be configured first.

  1. Edit the global settings (or individual entity display settings) and set the "Read more" link behaviour to either:
    • Always show link: To show the read more link unconditionally. Standard Drupal 7 behaviour.
    • Never show link: To hide the read more link unconditionally.
    • Show link when required by any supported fields: To hide the link when all enabled field tests discover that there is no additional content to display.
    • Show link when required by any supported text based fields: This only checks the "Long text" or "Text with summary" fields.
    • Show link when required by the Body (body) field: This only checks the body field. Standard Drupal 6 behaviour.
  2. If you selected When Required, all fields will be tested by default, to see if there is additional content to display. This checks text based field outputs and guesses on other fields by seeing if the filed display settings are different. Edit each individual field to prevent this check from occurring on that particular instance.
  3. Individual field instance settings allow individual field instances to be skipped during processing.

As of version 7.x-1.1, global settings can be found at:

Administration » Configuration » Content authoring » Read More settings

For each supported entity type, settings are located under individual display settings. For example, the standard installs page content type:

Administration » Structure » Content types » Page » Manage display

Non-core field support

Ping the issue queue if you need support for non-core formatters.

  • Smart Trim module added 5th April 2014.

Conflict

The Read More Link module may unconditionally adds the read more link. It has basic functionality to remove the link if the body field is empty.

Any functionality of Read More Link module should also be present in Read More Control, so you should not require both modules. These settings can be configured globally or be targeted at specific content types or even individual view modes (such as the RSS feed). These include:

  • Title text
  • Link URL; main href, query and fragment (or even to disable this)
  • Link attributes, class, title, rel, target
  • Link placement

Acknowledgements

Alexis Ryan (Monochrome) developed the initial version of this module and has full credit for the concept and base implementation.

To gain additional view modes, Entity view modes works well, but it does currently require a manual menu flush after adding the view mode unless you are using the latest dev version of that module.

Supporting organizations: 

Project information

Releases