Hello to all Drupal fans.

First of all thanks to Afief for taking over this project. Keep up the good work and maybe my code can help you a little.

I spend some time finding good way to display taxonomies in tree and taxonomy menu was the best I could find.
BTW do you know if there are any alternatives that would work with Drupal 6.
Taxonomy Context also looks promising and according to module info developer is planning to port it to Drupal 6.

I decided to take a look at the code and succeeded to include views support in version 6.x. Note that this is just one evening hack but if you are interested then take the file in attachment and replace taxonomy_menu.inc in drupal modules folder: (sites/all/modules/taxonomy_menu).

Usage:
Just create new view with default display, include Term Id as argument.
Select this view from taxonomy menu settings and set Show this category in menu: radio button to Views.

All the best
phade

CommentFileSizeAuthor
#3 taxonomy_menu.zip3.52 KBphade
taxonomy_menu.zip3.45 KBphade

Comments

phade’s picture

Oops just noticed that in http://drupal.org/node/122648 user vvvi has already done what I did. So sorry for reinventing the wheel :p

phade

sniurkst’s picture

Hello, phade,

I think that your "wheel" would be very helpful to my project, but could you please explain usage part a little bit more? I tried creating new view with one argument (Term ID) and with two (Vocab ID/Term ID) and with page display with path ([taxonomy_menu_path]/% or [taxonomy_menu_path]/%/%) but in all the ways result was "No content for this category.". And i know there is some content in that category and that content is shown if I use normal menu settings in taxonomy menu.

Could you give me an idea what did I do wrong?

Thanks in advance,
Sniurkst

phade’s picture

StatusFileSize
new3.52 KB

sniurkst:

Been busy :) and had no time to play with Drupal.

I think the problem is that my script only worked with default view (the one without path). However I have now updated the script to work with any view thanks to Viktor's code (referred earlier). So here is the updated version. View needs to have vocabulary id and term id as arguments.

Hope it helps,
Phade

Steve Dondley’s picture

Just installed. Seems to work well but only tested for 5 min.

michellezeedru’s picture

Awesome - this worked perfectly for me. Thanks so much for the fix!

karens’s picture

Status: Active » Closed (duplicate)

This isn't really a patch, and there is a working patch at #333145: Views integration that is based on the code already in the module, so this probably should be marked a duplicate.