Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

inherit_link

27 sites Security covered
View on drupal.org

Inherit Link allows you to extend link action to any other parent element.
Multiple links inside inherited link element will be allowed (this will just extend first match).

For example to link a teaser to its detail without nesting html inside inline link html element.
And to have a teaser extending its title element linked to detail. And any other
alternative action links completly funcional.

By default (after full installation) Inherit Link will be applied to selectors:
- .inherit-link
- .node--view-mode-teaser
You can see all usements (config entities) into "admin/config/inherit_link".
This is made by "inherit_link_ui" module, you can add / edit / delete any usement by interface.

Or if you prefer just a coding usement of the plugin: only enable main module, include library when required and use.
If there is any inherit link config entity, library will be attached to page.

This module requires a jQuery plugin "InheritLink": https://github.com/AliagaDev/InheritLink

These are the config options:
- Main element where inherit link will execute (and where link is located).
Example: ".node--view-mode-teaser".
- Link inside main element to inherit: "a" by default.
This to make more specific link selector inside inherited element.
- Prevent this element that may match with main selector. ".cbox" for example.
This is to add expections that may match to link selector.
- Hide inherited click element.
This will hide inherited link by JS, recommended to hide using CSS.
- Auto detect external links and open in new window.
This will add target blank if domain is different.

REQUIREMENTS

This module requires a jQuery plugin "InheritLink":
https://github.com/AliagaDev/InheritLink

INSTALLATION

Install the Inherit Link module as you would normally install a
contributed Drupal module. Visit https://www.drupal.org/node/1897420 for
further information.

Please note:
Main module will integrate plugin with a Drupal (library).
Install also "Inherit Link UI" to have default config entities and a user
interface integration "admin/config/inherit_link".

Download and place jQuery plugin "InheritLink" into libraries folder
"libraries/InheritLink/InheritLink.js".
https://github.com/AliagaDev/InheritLink/archive/master.zip

https://github.com/AliagaDev/InheritLink

Activity

Total releases
1
First release
Jun 2025
Latest release
10 months ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
2.0.1 Stable Jun 17, 2025