Download & Extend

Allow suppression of tooltip / popup / link title text on menus

Project:Taxonomy menu
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (duplicate)

Issue Summary

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

#1

Here'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.

diff -Naur taxonomy_menu/taxonomy_menu.module taxonomy_menu.old/taxonomy_menu.module
--- taxonomy_menu.old/taxonomy_menu.module 2010-05-03 12:00:06.000000000 -0500
+++ taxonomy_menu/taxonomy_menu.module 2010-01-21 19:47:02.000000000 -0600
@@ -517,8 +517,8 @@
     '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']))),
+//    'options' => array('attributes' => array('title' => t(trim($item['description'])
+//      ? $item['description'] : $item['name']))),
     'weight' => $weight,
     'module' => 'taxonomy_menu',
     'expanded' => variable_get('taxonomy_menu_expanded_'. $item['vid'], TRUE),

#2

Status:active» closed (duplicate)

Seems to be a duplicate of #372324: Ability to turn off description.