Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Advanced Link Attributes

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

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

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
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
8.x-2.6 Stable 10–11 Mar 18, 2025