The Selective Exposed Filters module seems does not work with terms grouped by hierarchy.

Comments

infojunkie’s picture

Component:Code» Views Filters Selective

Please review this with the latest dev. If it still does not work, please describe your scenario in more detail, especially regarding the steps needed to build the simplest view that exhibits the problem.

cyclonas’s picture

Same problem here. It doesn't work with filters exposed as Taxonomy:Term ID (with depth).
Force Single: true
limit list to selected items:true
Limit list to result set:true
Further limit list to active filters:true
Limiting field:Default

infojunkie’s picture

Thanks. I'll work on this soon.

infojunkie’s picture

Status:Active» Fixed

Fixed in the latest dev for "Taxonomy:Term ID (with depth)" filters. Please try it (12 hours from now) and let me know.

cyclonas’s picture

it doesn't return parent terms.

infojunkie’s picture

If you want to help fix this bug that affects you, please try to provide clearer and more detailed reports. When you write:

it doesn't return parent terms.

, I have to figure out what you mean and reproduce your situation from those very few words. It would be much more helpful to explain your settings (e.g. are you using a certain depth?) and ideally provide a screenshot to illustrate what you're saying. This way we can reduce the possibility of me misunderstanding your report.

Thanks!

cyclonas’s picture

StatusFileSize
new34.82 KB
new86.1 KB
new87.52 KB
new82.69 KB
new99.34 KB

You are right sorry.
well i have two vocabularies
VocA
----------
terma1
terma2
terma3
etc

VocC
----------
termc1
-childtermc1
-childtermc2
--childchildtermc2
termc2
termc3
-childtermc3

I use them in my view as exposed filters, the first one as taxonomy term:id and the other as taxonomy term id (with depth). As you can see in the attached images for the first i get an error and for the second there is no parent terms. I think that the corect it should be

termc1
-childtermc1
-childtermc2
--childchildtermc2
termc3
-childtermc3

infojunkie’s picture

Thanks cyclonas for the detailed bug report. From the screenshots I can deduce that you're not using the latest dev because I explicitly fixed the SQL error there. Please download the dev again and ensure that the file views_filters_selective/views_filters_selective.module contains the code:

<?php
function views_filters_selective_views_filters_selective_handler() {
  return array(
   
'views_handler_filter' => 'views_filters_selective_handler_filter',
   
'views_handler_filter_term_node_tid_depth' => 'views_filters_selective_handler_filter_term_node_tid_depth',
  );
}
?>

This version should fix your error.

cyclonas’s picture

I still get the same SQL error for the [Taxonomy:Term] filter, Views Hacks 6.x-1.x-dev 2010-Oct-23 , Views 6.x-2.11. There is no value for $filter->definition['field'] or $filter->definition['table']

cyclonas’s picture

StatusFileSize
new196.71 KB

...from eclipse debugger

infojunkie’s picture

Fixed in the latest dev. Please try it (12 hours from now to allow for dev release refresh or pull directly from CVS branch DRUPAL-6--1).

Status:Fixed» Closed (fixed)

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

FuXXz’s picture

But in the dev Version there is still no option to show the parent Item also!

Example (numbers represent the count of nodes belong to the terms)

Vocab1
-term1 (1)
-term2
-term2-1 (1)
-term2-2 (1)

The restrict to result option shows only term1 and the subterms "term2-1/term2-2
The option think that term2 is empty.
It this desired?

planctus’s picture

I noticed this too...
If you have a taxonomy filter with hierarchy the parent term is being removed from the list even though it has children terms returning from the query...
I don' think this is desiderable.
Thanks,
Da.