Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

Advanced Link Attributes

597 sites No security coverage
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

Activity

Total releases
1
First release
Mar 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Release date
8.x-2.6 Stable Mar 18, 2025