OK, after getting the "Add" button to appear, even in a views-fusion view, and all that working properly, I think I've discovered something that's a bit of a kick in the pants. Let's suppose you have four nodes with content_taxonomy fields for location, tied into a location taxonomy, and you're saving the entire lineage so you can display it in a lovely hierarchical text on the node itself. All that works great. Say the nodes are like this:

Node 1: Location: Canada > Ontario > Toronto
Node 2: Location: Canada > Ontario > Ottawa
Node 3: Location: Canada > Ontario > Kingston
Node 4: Location: Canada > Ontario > Toronto

Now, suppose in a view to display a quick summary of some of the items on the nodes you want to filter to get just the nodes in Toronto and Ottawa. With the filter set to "Is All Of", if I put "Canada > Ontario > Toronto" in my hierarchical-select managed exposed filter, I get my two Toronto nodes, Node 1 and Node 4. If I put "Canada > Ontario > Ottawa" in, i get Node 2. So far so good. However, if i now put both those in for my exposed filter, I get nothing. I surmise because none of the nodes satisfy the "Is All Of" criteria. That is, None of the nodes have all the terms "Canada", "Ontario", "Toronto", and "Ottawa".

OK, so now change the filter operator to "Is One Of". Now if I put "Canada > Ontario > Toronto" in my hierarchical-select managed exposed filter, I get all four nodes. I surmise that in this case, indeed every node does have "one of" "Canada", "Ontario", and "Toronto". In fact, they all have two of 'em --- "Canada" and "Ontario".

OK, so here's the question. How do I get the behaviour I want? That is, if I put the exposed filter for "Canada > Ontario > Toronto" and "Canada > Ontario > Ottawa", I get Nodes 1, 2, and 4, but not 3.

Any ideas?

shawn

Comments

sdsheridan’s picture

Title: Incompatibility between "Is All Of" in filter setting and HS Multiple Selects » Correct settings for "Is One Of" in filter setting and HS Multiple Selects
Category: bug » task

OK, figured it out, but I think this needs to be somewhere in the documentation (I can't find it in the README.txt file, and it is not clear to me from the configuration screen).

To get what I want above, the filter needs to be set to "Is One Of", and then in the HS config for the exposed filter, make sure the setting is for "Save only the deepest term" and NOT "Save entire lineage". With those two settings, I'm now getting what I want.

I've changed the title of this issue and the category to better reflect the nature of the issue.

shawn

wim leers’s picture

Title: Correct settings for "Is One Of" in filter setting and HS Multiple Selects » Document correct settings for "Is One Of" in filter settings and HS dropbox
Status: Active » Fixed

Thanks! Committed to both D5 and D6. Better to have obsolete than lacking documentation in D6 :) I can always remove it afterwards if it no longer applies.

http://drupal.org/cvs?commit=179990
http://drupal.org/cvs?commit=179992

wim leers’s picture

Thanks! Committed to both D5 and D6. Better to have obsolete than lacking documentation in D6 :) I can always remove it afterwards if it no longer applies.

http://drupal.org/cvs?commit=179990
http://drupal.org/cvs?commit=179992

Status: Fixed » Closed (fixed)

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