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).

Inherit Link

18 sites Security covered Drupal 9–11
View on drupal.org

Inherit Link allows you to make any parent HTML element clickable, extending the functionality of a nested link to the entire parent. This can be configured to target specific elements, such as making entire teaser blocks link to their detail pages.

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

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jun 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 1
Maintenance
Dormant

Releases

Version Type Core Release date
2.0.1 Stable 9–11 Jun 17, 2025