Overview
Last updated on
19 August 2018
Drupal 7 will no longer be supported after January 5, 2025. Learn more and find resources for Drupal 7 sites
How to use Block Title Link:
- Install the Block Title Link module the usual way at admin/build/modules.
- Navigate to the block configuration page of the block requiring a link in the title.
- Within the block title link settings fieldset enter at least the 'Title Path' for a link to be created. Ensure the 'Display Link' checkbox is checked to render the link.
How to alter panel block titles:
Place the following in your template.php
/**
* This provides block titlelink functionality to panels
*/
function mytheme_preprocess_panels_pane(&$vars, &$pane) {
if($vars['pane']->type == "block") {
$subtype = $vars['pane']->subtype;
$bt_delta = 'block_titlelink_' . preg_replace('/\-/', '_', $subtype, 1);
$bt_vars = variable_get($bt_delta);
if(!empty($bt_vars) && !empty($bt_vars['url']) && !empty($bt_vars['display'])) {
$vars['title'] = l($vars['title'], $bt_vars['url'], array('html' => true));
}
}
}
Using Block Link Title with Menu Blocks:
If you use Menu Blocks and Block Title Link and wish to have your menu block title link to itself use the following:
Title Path: [current-page:url:args:first]
http://drupal.org/node/1919816
Help improve this page
Page status: No known problems
You can:
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion