Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Default Link Text Widget

No security coverage Maintenance fixes only

This module adds a new option to Drupal's Link field widget, allowing site administrators to set a default value for the link text. This pre-fills the text field for editors when they create content, saving time by avoiding repetitive data entry for common link labels.

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!
Drupal 10–11

Ask your assistant about Default Link Text Widget

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

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