Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: ECA: Event - Condition - Action 3.1.7 Minor update available for module eca (3.1.7). Release: ECA: Event - Condition - Action 3.0.15 Minor update available for module eca (3.0.15). Release: ECA: Event - Condition - Action 2.1.24 Minor update available for module eca (2.1.24). Release: Commerce Core 3.3.9 Minor update available for module commerce (3.3.9). Release: Modeler API 1.1.6 Minor update available for module modeler_api (1.1.6). Release: Commerce Shipping 3.0.4 Minor update available for module commerce_shipping (3.0.4). Release: TMGMT DeepL Integration 2.4.1 Minor update available for module tmgmt_deepl (2.4.1). Release: TMGMT DeepL Integration 2.3.0 Minor update available for module tmgmt_deepl (2.3.0). Module Revived: Optional End Date 2.0.0 Module optional_end_date updated after 7 months of inactivity (2.0.0). Usage Milestone: Shortcode Module shortcode crossed 1,000 active installs.

Default Link Text Widget

No security coverage Drupal 10–11
View on drupal.org

This module provides a new field widget for Link fields that allows site administrators to define a default value for the link text (title) at the field widget level.

Features

  • Define a global default text for links (e.g., "Read more" or "Click here") that automatically populates the link text field when editors create content.
  • Extends the core Drupal Link widget, maintaining all standard functionality while adding the default value option.
  • Reduces repetitive data entry for editors by pre-filling common link labels.

When to use this module?

Use this module when you have a content type with a link field where the link text is often the same across most entries. For example, a "Related Resource" link that usually says "View Document".

Why not to use just core Link features?

Because core fails to allow to set a default link text value for links without setting a default URL value. There is a validation constraint forcing it. This is an old known core issue: Default value for link text is not saved.

Post-Installation

  1. Install the "Default Link Text Widget" module as you would any other Drupal module.
  2. Configure a Link field:
    1. Go to Structure > Content types (or your preferred entity type).
    2. Click Manage form display for the content type you want to modify.
    3. Find your Link field and change the widget to Default Link.
    4. Set the default value:
    1. Click the gear icon (Settings) next to the Default Link widget.
    2. Enter your desired text in the Default value for link text field.
    3. Click Update and then Save at the bottom of the page.
  3. Create a new piece of content. You will see that the link text field is now pre-populated with your chosen default value!

Depends on

Dependencies of the latest stable release

  • link Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
5 hours ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.0 Stable 10–11 Sep 7, 2026