Knowledgebase

How to turn block titles into links in Drupal

The Drupal core doesn't have an option that lets you create a link from the title of a block. There's a third party module that allows you to do that; it's called Block Title Link.

The first thing to do, of course, is to download, install and enable the module. If you need more information on how to do that check out the article on installing modules.

Once the module is enabled a few settings will be added to the block configuration page. You can use those settings to make a link out of the block titles of any of your blocks. To do this, in your Drupal admin panel click on the Structure tab in the top navigation bar, then on the page that opens click on Blocks and on the following page click on the configure button of the block that you want to edit. On the configuration page you'll see a new section with settings labeled Block Title Link Settings. Make sure the checkbox for Display Link is marked and in the field for Title Path type the URL path of the link.

You can use a path to a resource on the same site or you can use a full external URL address. In case the content is on the same site you just need to specify the local path (relative to the root web address); for example, if the full address is yourdomain.com/node/46, you just need to type node/46 in the field for Title Path. If the link is to an external URL address, you have to type the full address (e.g. http://anotherdoman.com). Don't forget to click on the Save block button to save the changes.

If you need more information on how to create and configure blocks check out the tutorial on managing blocks in Drupal.

Was this answer helpful?

 Print this Article

Also Read