Block Title Link allows a block to link its title. It works by adding new properties to the $block object. It then uses hook_preprocess_block to wrap a link around the current block title.
There is a also a option to disable the link from rendering around the title. This is useful for using the link elsewhere in the block template. For example: to link an icon, or add a "more" link.
This module adds the following properties to the $block object:
$block->title_link: The URL or path stored with each block.$block->title_link_title: The title attribute for the link.$block->title_link_target: The target attribute for the link.
-
Install this module using the official Backdrop CMS instructions.
-
Manage blocks on any page via the configuration page under Administration > Structure > Layouts (admin/structure/layouts) and provide the title link information.
- Block Title Link settings are not available on the "Add block" form for custom blocks. They are only available for each block instance, accessible from the layout configuration.
Bugs and feature requests should be reported in the Issue Queue.
- Ported to Backdrop CMS by Jen Lampton.
- Maintained for Drupal by Adam Malone.
- Maintained for Drupal by Nick Maloney.
- Maintained for Drupal by Julian Pustkuchen.
- Maintained for Drupal by Thomas Frobieter.
- Maintained for Drupal by James Gilliland.
This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.