Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When using taxonomy menu to generate a suckerfish menu, the "a title='.....'" part of the generated menu item tag becomes a huge nuisance preventing proper navigation. To suppress this I have commented out lines 539, 540 of taxonomy_menu.module:
$link = array(
'link_title' => t($item['name']),
'menu_name' => $item['menu_name'],
'plid' => $plid,
//'options' => array('attributes' => array('title' => t(trim($item['description'])
// ? $item['description'] : $item['name']))),
'weight' => $weight,
'module' => 'taxonomy_menu',
'expanded' => $expanded,
'link_path' => $path,
);
Since this makes it nearly unusable in this specific circumstance, it would be fantastic to add one option, probably defaulting to "off" to suppress the output of title tags on menus.
Drupal core has set the precedent for suppressing title by default:
http://drupal.org/node/155312
http://drupal.org/node/547206
Comments
Comment #1
mattsteven CreditAttribution: mattsteven commentedHere's a patch to suppress it in case anyone else has this problem. An admin menu option would be more helpful, but this will get me by until that's added to main.
Comment #2
dboulet CreditAttribution: dboulet commentedSeems to be a duplicate of #372324: Ability to turn off description.
Comment #3
maximpodorov CreditAttribution: maximpodorov commentedThis is not a duplicate of turning off descriptions. I suggest to apply this patch (for 7.x-1.x-dev) to support the requested feature:
Comment #4
dstolLet's address this in 7.x-2.x
Comment #5
maximpodorov CreditAttribution: maximpodorov commentedI'd recommend to add this patch to 7.x-1.x also, since it doesn't change and break anything (default variable value makes the module not to change it's behavior).
Comment #6
hles CreditAttribution: hles commentedFixed with Commit b4dde83 in 7.x-2.x. Making this one as fixed as we won't add any new feature in 7x-1.x.