Hi

I'm fairly new to Drupal, coming from Joomla, but why didn't I look at Drupal before now. I'm impressed with the power of this system. I really like hierarchical select and views, but I can't figure out how I combine them.

I have created a taxonomi vocabulary called cars with a structure like this:

Car Brand
--Car Model
----Car Variant
------Year

I have a content type that uses this information and last a view that display's all the items of this content type. I have hierarchical select working fine when creating new "items" but I simply can't figure out how to use hierarchical select as an exposed filter in my view.

Is it possible? Can anyone guide me on my way? I hope this is the right place to ask for this kind of help.

I'm running Pressflow drupal v. 6.15

Thanks,
Daniel

Comments

ludo1960’s picture

In your view, add a filter "Taxonomy: Term" then choose Hierarchical Select as the "Selection Type"

dyvel’s picture

Thank you!!! That was exactly what I was looking for :)

meet.h.thakkar’s picture

there is no option like that :(

meet.h.thakkar’s picture

i got it ... sorry .. :)

summit’s picture

Hi, I have it installed. but got now - receiving an invalid response from the server- error.
Only on Hierarchical Select Taxonomy expose in views, not in normal usage (not exposed).
SOmetimes the error is there..sometimes not..very strange.
Will test some more.
greetings,
Martijn

ckeen’s picture

Pardon me for being blind but I do not see selection type.

I've added "Taxonomy : Term =" to the filters section but I do not see 'Selection type anywhere :(.

Brazen’s picture

You probably missing hierarchical select module

ckeen’s picture

No i have the module installed and enabled... that's the thing :S

ckeen’s picture

I have the module installed and enabled:

Hierarchical Select Taxonomy Views

But when I add the Taxonomy : Term and expose it I do not see the option still

ckeen’s picture

Ahh I see the problem. I was using (Taxonomy : Name) instead of (Taxonomy : ID)

I see it does not work for Name.
.

arski’s picture

Duh.. had the same problem.. The HS module could really benefit from some proper documentation *gr*

peezy’s picture

+1 for better documentation for HS.

I'm getting some odd behavior as well: HS is only available as an exposed filter when I select Taxonomy: Term, not when I do Taxonomy: ID. What's even more strange is that I have tested the same View with the same HS settings and vocabulary Taxonomy on another site and guess what.... HS is behaving as described above (available only when Term: ID is selected). I also need depth, so I need Term ID (with Depth).

Any suggestions would be appreciated.

Update: The previous developer of the site had a copy of the earlier version (3.6) of HS installed in another location . Support for Term ID with depth (the feature I needed) was added in version 3.7.

...so anyone having issues with a views exposed filter and HS should first make sure that the most recent version of the module is installed and that it is configured properly.

gianfrasoft’s picture

I don't have a "Taxonomy: Term" filter in my view based on users. :(

Can anybody help me?

Thanks.

Web Software Engineer at
Insem S.p.A. - www.insem.it

peezy’s picture

The easiest way I can think of to link users to taxonomy would be to create a content type for user profiles with the content profile module. Then, you can add your taxonomy terms as CCK fields with content taxonomy.

There may be other ways discussed here: http://groups.drupal.org/node/4631

New_Bee’s picture

I didnt get 'Hierarchial Select ' option, only drop down and auto complete are available, I need HS as exposed filter with taxonomy. Can any body help.

webdeveloper480’s picture

Hi,

"Taxonomy: Term" option is not shown in my view. I am using Drupal 7.22
Please help me.

Thanks,

nkhanchandani’s picture

user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') count_alias' at line 1 query: SELECT COUNT(*) FROM () count_alias in C:\wamp\www\drupalgoogle\sites\default\modules\hierarchical_select\modules\hs_taxonomy_views.module on line 535.

peezy’s picture

Two things: first, you should really put contrib modules in sites/all/modules instead of sites/default/modules. Second, your error is a known issue with the module. You can follow this issue here: http://drupal.org/node/950548 or post more information about what you are trying to do and perhaps i or someone else can help more.

rathin2j’s picture

hi i m new to drupal, and want to create Exposed filter using HS in Drupal 7,i tried all mentioned above methods BUT was unsuccessful :'( so wanted to ask that is this exposed filter function available for D7?? and another question what is the difference between Taxonomy :name and taxonomy:ID?? how to find them in site?

mikeg333’s picture

In D7 you need to add a relationship of Taxonomy term. Then when you add your filter you choose taxonomy term by term id and use the relationship. You will then get the option to exposed it and select Hierarchical select as the method.

rathin2j’s picture

hello,
sorry for extremely late response,so do i have to create relation between taxonomy terms using "relation module? or simply arranging in proper hierarchical sequence in vocabulary will do?

dianikol’s picture

Did you make it? As i read in the issues track that doesn't seem to work yet

rathin2j’s picture

hi,
no i m still not successful in implementing this feature :( it's not working...

justinchev’s picture

[edit: sorry just noticed this question was for D7 - my answer is for D6]

Just create your taxonomy terms in a proper hierarchical sequence. Then in the view make sure you are exposing Taxonomy term ID (with depth), with the 'Selection type' setting using 'Hierarchical Select'.

parentTerm1
  - childTerm1
     - childTerm_a
     - childTerm_b
  - childTerm2
  - childTerm3

BTW. I have had some problems using Heirarchical Select 6.x-3.8 with Views3 (6.x-3.0). You get SQL errors when you enable the Hierarchical Select configurations - 'Display the node count' & 'Require associated node'.

rathin2j’s picture

hello sir,
thank u for you support,but i have created flat taxonomy,so i'l have to create such hierarchical texonomy then will be able to test it,and unfortunately having exam frm 15th, so will try on 22nd and wil let u know..once again thanks...was really in need of this feature in my site.. thanks bye..

dianikol’s picture

'Hierarchical Select' choice isn't available at all. 'Hierarchical Select Views' module is enable.

rathin2j’s picture

hello sir,
i tried ur method. but it's not working i face following problem
1. i created a separate vocabulary for hierarchical select,and added a field in my content type and taged all content according to the parent and child relation required,but after activating module, i m not able to save the content, it is showing sql error as u mentioned but i could not under the solution what u gave
2. i tried creating a separate view for this select and used that "Hierarchical select filed" in filter and choose exposed filter with drop down in selection type-, used "TABLE" as format. done all this but still i get old "drop down" menu only..no hierarchical select :(

so in a way can say this feature is still not ported to D7?? :'(

savinsur’s picture

Make sure to check your modules settings;

Form Elements > Hierarchical Select Taxonomy Views

Must be activated for HS to work in views.

ana.bapz’s picture

Hi
I try to follow all ur advices, cause I have a taxonomy and i want my user be able to make a research with these terms:
the taxonomy is :
- Continent
---Country
----City

and add also : ingredients in my filter wich is a different vocabumary in my taxo

I am a beginner with drupal and with website creation

If anyone could advice me how manage to do that please!
I really need it for my project!

But i don't have the option "Selection Type" neither this "Taxonomy : ID"
and of course i have the module!
thanks you in advance

rathin2j’s picture

hi ana.bapz,
well u hvn't mentioned that weather u are using D7 or D6 but i m guessing that u r using D7, so first of all i would like to say that "Hierarchical Select" module wont be of any use,as it is still not ported properly but it will b SOON,i guess, u can follow this http://drupal.org/node/1170192 to know the updates. well apart frm this as a solution for ur requirement i would suggest following alternative
1. View's exposed filter (inbuilt functionality of views)
2.Better exposed Filter(module)-http://drupal.org/project/better_exposed_filters
3.http://drupal.org/project/views_hacks (though still in DEV but worth a try.)

my personal suggestion would be (uptill HS in not ready to GO) "views exposed filter",it's robust and quite easy to implement though and versatile... :)

kaizerking’s picture

@Rathin Dholakia, I could not get this views exposed filter in my search, could you please provide a link?
sorry i got it, it is part of views, but how do we get it to be used to mimmick hierarchcial select views filter?

rathin2j’s picture

hi, sry for delayed reply was hving exams so was stuck up in that,

now coming to the point....it is not possible to imitate the behaviour of the HS exactly!! but it's possible to gain it's functionality(though with reduced aligance and flexibility)

if u wish to have that "step by step" selection which is available in HS then i m sorry but i'l have to dissapoint u.. :( we all are waiting for it(in D7)..
but if u want tutorial about views implementation u can very easily get it from the community forum, or here are the video links

http://dev.nodeone.se/en/exposed-filters-1
http://dev.nodeone.se/en/exposed-filters-2

follow above mentioned exposed filter steps,in that u just have to select "texonomy terms" of ur choice ,in the "filter" to immitate the HS functionality..ok!! :) is it clear now?? if not do ask again,i'l write down detailed steps for it..

designgraphic’s picture

Hi,

I installed drupal 7, I have added the module-filter, i added 3 type of filter year wise All 2013 2012 2011 2010. Each year have 10 to 15 galleries, when i click the page (portfolio), loading all events (65) galleries. i need to remove (all), i remove the term. but still loading all of events. how i fix the problem. i need to show when i click the page the first year (2013) not for "all" can you please help me.