Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Advanced Link Attributes

No security coverage Under active development 599 sites

This module provides an enhanced widget for link fields, allowing users to configure attributes like target, CSS classes, icon placement, and user role visibility. It also offers formatting options for where classes are applied and how icons are displayed.

INTRODUCTION

Advanced Link attributes widget provides an additional widget for the link field.
The widget allows users to set following attributes/options on their link.

  1. Target
  2. a class
  3. a class for an icon
  4. visibility for user roles
  5. icon location

* For a full description of the module, visit the project page:
https://www.drupal.org/project/ala

* To submit bug reports and feature suggestions, or track changes:
https://www.drupal.org/project/issues/ala

REQUIREMENTS

This module requires the following modules:

* Field Link

INSTALLATION

* Install as you would normally install a contributed Drupal module.
* composer require drupal/ala

CONFIGURATION

* Using '**Manage form display**' select the 'Advanced Link Attributes' widget.
* Global class list cab be configured in module configuration page.

  • Class Settings: you can have a global class list
    (/admin/config/advance_link_attributes) or you can define
    for every single field. you have following options in every single field.
  • Icon Settings: you can activate/deactivate icon field for every single field
  • User Role settings: you activate/deactivate role selectbox for every single field
  • Text Color & BG color: you activate/deactivate color inputs for every single field

Select Advanced Link Attributes formatter and you have following options.

  • Class Option (where must be added the class selected)
    • Link Element (as attribute class of tag "a")
    • Parent Element (as attribute class of parent element)
  • Icon Position
    • As tag "i" inside element
    • As a class
    • As data-attr
  • Role Visibility
    • Hide (No render)
    • Visually Hidden (Rendered but hidden)

RECOMMENDED MODULES
-------------------

* Link Attributes widget: https://www.drupal.org/project/link_attributes
* Menu attributes: https://www.drupal.org/project/menu_attributes
* Menu Link Attributes: https://www.drupal.org/project/menu_link_attributes
* Menu Item Extras: https://www.drupal.org/project/menu_item_extras

MAINTAINERS
-----------

Current maintainers:
* Aaron Armstrong ( Promet Source ) - https://www.drupal.org/u/aastrong
* Kushan Gunasinghe - https://www.drupal.org/user/3619158

Drupal 10–11

Ask your assistant about Advanced Link Attributes

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
4
Tracked since
May 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
8.x-2.6 Stable 10–11 Mar 18, 2025
8.x-2.5 Stable 8–10 Jun 16, 2023
8.x-2.4 Stable 8–10 May 16, 2023
8.x-2.3 Stable 8–10 May 15, 2023