I insalled this taxonomy menu andI get a link to my categories in module. But I just need a list of taxonomy terms without me clicking the link to expand the menu to see all the taxonomy terms.

Is that possible.

Now I have a link like this

categories

and when I click on it i get

categories
item1
item2
item3
item4

I would like to have only a list like this

item1
item2
item3
item4

Is that possible?

Comments

Gábor Mayer’s picture

Category: support » bug

where are the terms as in d5?

drupimp’s picture

I have that problem as well. It would be nice to have a way to "shift" the hierarchy up by one level, thus hiding the vocabulary name while still showing all of the children.

garfy - blocked for being foulmouthed and rude to others’s picture

bump

john.karahalis’s picture

I was wondering the same thing. Does anybody have an answer to this?

rares’s picture

Title: How to list all the taxonomy terms in a menu » How to list all the taxonomy terms in a separate menu
Version: 6.x-1.0 » 6.x-1.x-dev
Component: User interface » Code
Category: bug » feature
Priority: Critical » Normal
Status: Active » Needs work

I think there are many users who would like to see taxonomies as independent menus, so I am suggesting this as a feature request and suggesting some code to achieve this functionality. Maybe in a future release users could choose whether they want the items added to the Navigation menu or to separate ones. Here's how I'm doing this:
1. Create a menu in drupal for each vocabulary I want to appear separately named vocab-vid (e.g. vocab-3 for vocabulary 3)
2. Apply the following patch:
In _taxonomy_menu_menu(), comment out

/*
      $items[$path] = array(
        'access arguments'    => array('access content'),
        'file'            => 'taxonomy_menu.inc',
        'page callback'   => '_taxonomy_menu_page',
        'title'           => t($vocab->name),
        'weight'          => $vocab->weight
      );
*/

Hope this helps.
And at

          $items[$path] = array(
            'description'     => t($term->description),
            'title'           => $name,
            'weight'          => $term->weight,
            'access arguments' => array('access content'),
          );

add the attributes:

        'file'            => 'taxonomy_menu.inc',
        'page callback'   => '_taxonomy_menu_page',
        'menu_name'	 =>  "menu-vocab-".$vocab->vid,

Note that
'access arguments' => array('access content'),
is not currently included in the stable version, but needs to be added in the future release for compatibility with 6.3

Rob_Feature’s picture

Hmm....I attemped this, and once I patched the file, the Taxonomy Menu settings menu item went away. Thoughts on how to get it back? I'm assuming I need to activate the vocabs I want to turn into menus?

rares’s picture

Title: Surpress Display of vocabulary » How to list all the taxonomy terms in a separate menu
Version: 6.x-2.x-dev » 6.x-1.x-dev
Assigned: indytechcook » Unassigned
Status: Closed (fixed) » Needs work

Make sure you create the menus before you apply this, or before you enable taxonomy_menu for those vocabulary.
In D6, when you go to admin/build/menu/add, in the first box "Menu name", type vocab-3 or vocab-4 or whatever, your vocab ID is. You should be able to go to /admin/build/menu-customize/menu-vocab-4 afterwards.
If you go through this and enable the menu for the vocab at admin/settings/taxonomy_menu then the module should add the terms.
I wish I knew how to create menus through the API, so this wouldn't be necessary.
Rareş

moshe weitzman’s picture

I don't know what #7 is describing.

Perhaps you want to look at devel_menu() in devel module which adds menu items to its menu. Thats what this module should do.

stormlifterNET’s picture

I too would love to be able to shift the menu back one step and not have the vocabulary item in the menu at all.

What I have is this

Catalog < - block title
-Catalog < - Vocabulary Name
--Pens
--Pencils
---Mechanical Pencils
--Paper
---Lined Paper
---Printer Paper

I don't want to have the Catalog vocabulary name as a part of the menu. I want what is below.

Catalog < - block title
-Pens
-Pencils
--Mechanical Pencils
-Paper
--Lined Paper
--Printer Paper

seidren’s picture

In D5 I used to 'disable' the parent menu and the child menus used to show up without the root. But in D6 its not happening. I am struggling with the same issue. Will let you know how it goes...

seidren’s picture

Advanced Taxonomy Blocks solves a lot of these issues...
http://drupal.org/project/taxonomyblocks

indytechcook’s picture

Title: How to list all the taxonomy terms in a separate menu » Surpress Display of vocabulary
Assigned: Unassigned » indytechcook
Status: Needs work » Postponed

Will be reviewed after rewrite for D6.

seidren, did that work for you in D5?

indytechcook’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Postponed » Fixed

This is part of the latest dev package.

Status: Fixed » Closed (fixed)

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

dstol’s picture

Issue summary: View changes
Status: Needs work » Closed (fixed)