Link Block Title to Node

spookypld - May 26, 2009 - 23:48
Project:Node Blocks
Version:6.x-1.2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I didn't find an easy way to addres block title to node page.

I would like to have such feature in the future.

Maybe there is something like this but I'm just to tired to find it out?

#1

joachim - July 17, 2009 - 14:06

Best way I think is to wrap the $block['subject'] in a link within nodeblock_block.
But then you're doing it for all nodeblocks.

#2

Roger López - July 23, 2009 - 01:12
Status:active» won't fix

This is the same as for any block. If you need to override block output, you can use one of the many available block templates.

See http://api.drupal.org/api/function/template_preprocess_block/6

You can use:
- block-[region].tpl.php
- block-[module].tpl.php
- block-[module]-[delta].tpl.php

#3

joachim - July 23, 2009 - 07:30
Status:won't fix» active

Sure, but by the time we get to the block template, we only have subject and content which are strings -- the node nid is no longer available.

 
 

Drupal is a registered trademark of Dries Buytaert.