is it possible to pass terms (of taxonomy) to Primary/ Secondary Links as navigation menu? if so, please show how or at list provide any links that show's how to implement it...

thanks again...

Comments

Jeff Burnz’s picture

Not that I know of, usually I add them manually, because there aren't that many this is manageable. I always link to the internal path, such as /taxonomy/term/1 and Drupal takes care of using the alias.

cmsproducer’s picture

There is a function (see the API) called taxonomy_get_terms_by_vocabulary () that you can use by passing the vocabulary ID to it and it will tell you the terms selected for a given node. If you however just want to list all the terms all the time and use them as a menu system, you can create a VIEW and make it create a block that you can embed in a region and use as the menu. As such:

- Create a VIEW listing all the taxonomy terms with each term formatted as a link
- Filter by vocabulary or create an argument to enable you to filter on the fly
- Export the VIEW as a block
- Position the block where you want the menu
- Use CSS/Views theming to fine-tune how you want the menu to look

The VIEW approach has more flexibility than regular menus being that you can filter, rearrange and share items between multiple menus

Jeff Burnz’s picture

I think if you're taking this approach its worth looking at http://drupal.org/project/taxonomy_menu or use taxonomy_get_tree without the overhead of views or a block.