Skip to content

backdrop-contrib/block_titlelink

Repository files navigation

Block Title Link

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.

Installation

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

Differences from Drupal 7

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

Issues

Bugs and feature requests should be reported in the Issue Queue.

Current Maintainers

Credits

License

This project is GPL v2 software. See the LICENSE.txt file in this directory for complete text.

About

Allows block titles to be linked.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 5