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

  1. Install the Block Title Link module the usual way at admin/build/modules.
  2. Navigate to the block configuration page of the block requiring a link in the title.
  3. 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));
    }
  }
}

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

Tags

Help improve this page

Page status: No known problems

You can: