I've just upgraded my site form Drupal 5 to 6 and can't get the taxonomy filter module to behave how it did in Drupal 5.

I have 1 vocabulary with multiple select terms.

If I add a base type menu, all my terms are listed and I can filter on these. But previously in the Drupal 5 module, it just listed terms that would bring results, rather than every term that exists in that vocabulary.

If I make a context type menu, I get no results at all.

I must be missing something obvious, but there don't seem to be any more options to set.

Comments

styro’s picture

If I add a base type menu, all my terms are listed and I can filter on these. But previously in the Drupal 5 module, it just listed terms that would bring results, rather than every term that exists in that vocabulary.

That needs the tf_count submodule enabled - ie doing different things based on the number of results requires counting them :)

If I make a context type menu, I get no results at all.

I have no idea whether that's a bug, or the context module was never properly finished.

iancawthorne’s picture

I think I had confused myself a bit the way I wrote my query... let me try again!

I have the taxonomy filter module showing the terms I can filter on, but when I click on one of these, rather than it filtering, it goes to that terms page.

Example.

I am on term A. There are terms B and C.

I click on term B and expect to get a filter of terms A, B. Rather than this I get B. So just a link to the term rather than it filtering.

styro’s picture

Do you have tf_multi enabled? If so that is by design as well. You need to use the +/- links to add/remove terms from the url when tf_multi is enabled.

iancawthorne’s picture

Ah I see. I hadn't realised the + signs were to add the terms to the filter.

Disabling the tf_multi did the trick.

I wonder if the + / - symbols could be optionally set titles in the module in future a release?

I don't think it is intuitive enough as add / remove for example.

Clicking the term name to add it and then having remove links next to the "showing only" results would have been my personal choice. Or perhaps a remove list block.

solotandem’s picture

Assigned: Unassigned » solotandem
Status: Active » Needs review

Download tonight's dev release (see #447896: Change base menu template to display a refine search block and show the current search criteria) and post back whether this works as you expect. Use the base menu template and enable the tf_multi module. Also enable the tf_count module if you want the display with counts.

solotandem’s picture

djmystic82: The context module was never finished in D6. It is next on my agenda along with the dynamic template. Are you willing to help test it?

solotandem’s picture

djmystic82: The context menu was implemented in 6.x a few days ago. Have you had a chance to try it out? Would you provide an example of your taxonomy structure and node content (i.e. not real content but illustrating the relationships like parent, child and related terms, what tags are applied to each piece of content)?

iancawthorne’s picture

Hi solotandem, I've not had chance to look yet. Many thanks for adding this feature though. I will try it out over the next couple of days.

iancawthorne’s picture

I've tried adding the latest dev release and am struggling a bit. I've added a context menu and set my desired mappings for the terms.

On the mappings tab I can choose Base menu types, but if I add a Context menu, it is not listed to select.

My taxonomy structure for the site I want to use this for is quite simple. There are no child / parent relationships. There are 4 vocabularies, which can applied to any content type.

I would like to be able to visit a taxonomy term page, and the taxonomy filter block will list any other terms it considers can be filtered on to refine the listing. If the refinement can be more than two selected that is a bonus.

I think what I'm after may be possible now. I think it was at least possible with the earlier version of the module.

solotandem’s picture

The context menu defines "context" as nodes tagged with parent, child or related terms to the current term. Based on your description, your taxonomy does not fit this model and I would expect no links to select.

I would suggest the base (or cloud) types as appropriate to your taxonomy. These two menus work well with refining by more than two terms. The context and dynamic menus do not work (yet?) with more than two terms.

iancawthorne’s picture

This makes sense. The current selection and ability to change the add or remove is a good feature.

All I seem to be missing now is that, whichever menu type I choose, if I'm on term A and click term B on the taxo filter menu, I get a list of terms "A or B" but necessarily both on the same node, rather than filtering down to show "A and B".

solotandem’s picture

Three questions:

1) Do you have nodes tagged with terms A and B?
2) Are you clicking on a link with the URL like taxonomy/term/A,B? (The "+" sign link can be misleading if displayed right next to the term text.)
3) Are you using base or cloud menu?

If you answer yes to all three, then it should work. (I have the exact situation on my development site.) If it doesn't, then I will need more information.

iancawthorne’s picture

I think the answer is Yes for all three.

I am using base menu.

Here is an example for you to look at :
http://steam-box.com/taxonomy/term/343

If I add "Q6" by clicking on the taxo menu in the right column, it should then show only the top result, but instead it then shows all nodes tagged with Q6 or 49395 (the original term).

http://steam-box.com/taxonomy/term/343,229

solotandem’s picture

I looked at the links and see what you mean about it seeming to do an "or" on the terms instead of an "and." Taxonomy filter does not drive the content displayed, only the filtering links. I would review the module generating the content. If it is taxonomy, then I would have to investigate the terms and their relationships in the database.

Questions:

1) What module is generating the content -- taxonomy, views, or some other?
2) Is there some way the "," is being interpreted as an or in the module generating the code?
3) What counts do you get from a sql query on the various combinations of terms?

iancawthorne’s picture

Bingo! I was using the taxonomy/term view so that I had more control over the ordering of my taxonomy pages. By disabling this, I can now use taxo filter as expected! Many thanks for your help on identifying this. I would have never thought that views would be the problem, but it is kind of obvious once thinking about it in the way that views arguments work.

Has this ever cropped up before? I guess a solution would be good, but I can certainly live with not using views to control my taxonomy pages.

solotandem’s picture

Status: Needs review » Fixed

Glad to hear you resolved the problem.

Status: Fixed » Closed (fixed)

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