Posted by SamRose on June 2, 2009 at 7:26pm
Jump to:
| Project: | Jump |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
We struggled with trying to do this ourselves and submitting as patch, but got nowhere. Any suggestions or can you implement this?
Comments
#1
Not sure I understand what you're asking for. Can you attach a screen shot?
#2
This feature didn't get into 1.x. We are glad to accept a new patch against 2.x branch.
#3
Add the following to your theme_preprocess_block function in template.php:
<?php// custom preprocessor for jump (menu) to add menu description to block
if ($block->module == 'jump') {
if (substr($block->delta, 0, 4) == 'menu') {
$menu_name = substr($block->delta, 5);
$vars['block']->description = db_result(db_query("SELECT `description` FROM `menu_custom` WHERE `menu_name` = '%s'", $menu_name));
}
}
?>
and create a copy of block.tpl.php in your theme dir called block-jump.tpl.php with the following added:
<?php if (!empty($block->description)): ?><div class="description block-description"><?php print $block->description; ?></div>
<?php endif; ?>