Move Read More link to end of node content

Created on 25 January 2005, over 20 years ago
Updated 18 March 2025, about 2 months ago

Problem/Motivation

Node teasers include a Read more link to the full post in the node links, which are displayed in a row under the post in most themes. Users consistently report that this position for the Read more link is not intuituve and end users do not notice it. A more natural position for the link would be the end of the post's main text.

There are existing contrib modules which add this functionality:

However, for usability reasons, we would like to make the position of the link configurable in core.

Proposed resolution

  • Make the position of the Read more link configurable, with options something like the following:
    (o) At end of summary
    ( ) In links section
    ( ) Both
    ( ) Do not display
  • When this option is set to "At end of summary" (or "Both"), append the Read more link to the end of the teaser using DOM manipulation. (String parsing or regexes are not recommended; see #72.)
  • Make the link text themable, so that the rendering can be customized.

Remaining tasks

Several aspects of the feature are still under discussion:

  • The exact text of the form option labels.
  • What type of form element to use (radio buttons, checkboxes, or a select box).
  • Whether to include the "Both" option.
  • Where the configuration form element should appear (see #203).

The most recent patch for this issue, in #180, is nearly two years old. A lot has changed since then, so the patch needs to be rewritten, with the following changes:

  1. Update the patch to use the field API, and provide the configuration option for any Long text with summary fields.
  2. Update the theme function to use the render API (see #170).
  3. Incorporate final decisions for the points above.

User interface changes

  • Current appearance of 'Read more' link in Drupal 8:
  • New feature with new configuration form element.

API changes

None.

Original report by chrisada

That is the behaviour of most systems, and I think it is more natural.

Right now, the 'read more' link are often overlooked, especially when there are many other items in node->links. (comment, trackback, stat, del.icio.us tags, etc.)

Feature request
Status

Closed: outdated

Version

11.0 🔥

Component

node system

Created by

🇹🇭Thailand chrisada

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs screenshots

    The change alters the user interface, so before and after screenshots should be added to document the UI change. Make sure to capture the relevant region only. Use a tool such as Aviary on Windows or Skitch on Mac OS X.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇦🇺Australia acbramley

    This issue seemed very popular in 2009 but has gone stale for over 9 years.

    Funnily enough, the Read more link is explicitly hidden in Olivero via node--teaser.html.twig. However, the Read more link is added via the Links component which is re-orderable via manage display settings.

    If I change Olivero's template to display links (i.e update {{ content|without('field_image', 'links') }} to {{ content|without('field_image') }} then I can reorder the field in the Teaser view mode.

    Seems like this one can be closed out.

Production build 0.71.5 2024