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

joachim’s picture

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.

zroger’s picture

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

joachim’s picture

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.

tom_o_t’s picture

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?

Johnny vd Laar’s picture

I've added an improvement in the Drupal 7 version. I won't include this in Drupal 6:
http://drupalcode.org/project/nodeblock.git/commit/5afcb66

Johnny vd Laar’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

klonos’s picture

Version: 6.x-1.2 » 7.x-1.x-dev
Category: feature » support
Status: Closed (fixed) » Active

@Johnny vd Laar: sorry, I cannot find how to do that. Is there any option somewhere in the UI I'm missing?

Johnny vd Laar’s picture

Status: Active » Closed (works as designed)

No there is no UI option to do this. Inside the block.tpl.php and the preprocess_block you now have the node object such that you can create a link there (code wise).

Creating links from the UI is not something I'm planning to add to this module because the block template is not part of this module.