It would be great to be able to have the badges as a part of block titles, is this possible? For example, creating a custom View, setting it to display as a block and adding the Badges in a similar way to adding it to tabs.

Comments

zengenuity’s picture

Hmm...that's probably out of the scope of this module, since this is really for menu items. It seems like a somewhat limited use case, as well. Can't the user already see what is in the block? Why would you need a badge? It's different for menus, since you can't see the result until you click the link.

DrupalDesigner-1’s picture

I was thinking in the situation where blocks are integrated with either Collapsiblock(blocks which can be collapsed or expanded) or the Taskbar module (which creates an expandable tray for selected blocks). Also it would be useful in cases where people use blocks for their menu systems. I suppose the main benefit of using blocks though is that it allows the badges/notifications to be positioned in any region of the page, or can this be done with the current system already?

zengenuity’s picture

I think it would be really difficult to build a user interface to allow an end user to put badges on any link in any region. However, you can write some custom code to do it for your specific project. I broke Link Badges module out from this one specifically so that other modules could use badges on their links. Look at the README.txt for details about how to do this. You can probably add badges to your block title links by implementing http://api.drupal.org/api/drupal/modules!block!block.api.php/function/hook_block_view_alter/7 in a custom module.

zengenuity’s picture

Status: Active » Closed (won't fix)