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 |
Jump to:
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
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
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
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.