Project:Node Blocks
Version:6.x-1.2
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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?

Comments

#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

Status:active» closed (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

Status:closed (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.

#4

see related request in http://drupal.org/node/552536

Perhaps the solution is to add the node object to $block so that it's available to the template?

nobody click here