2

In Drupal 7, I have a exposed filter set at first in its hierarchical fashion

enter image description here

with the following structure:

Adjunct
-Adjunct Lecturer
-Adjunct Professor
Chairperson
Clinician
Container
-Director Advising & Student Affairs
-Managing Director TIC
Deans
-Associate Dean Undergraduate Advising Administration
Department Chair
Emeritus
-Associate Professor Emeritus
-Professor Emeritus
Lecturer
-Senior Lecturer
Professor
-Assistant Professor
-Assistant Professor in Residence
-Associate Professor
-Associate Professor in Residence
-Research Scientist & Professor
Speech Pathologist
Visiting
-Visiting Assistant Professor
-Visiting Associate Professor

In the exposed filter, is there a way to expose only the parent (first level) items (Adjunct, Deans, Department Chair, etc)?

Update: Grouping the exposed filter in views did not work (ticket).

  • have you tried adding " Taxonomy: Term ID (with depth)" and set the depth to "1". – Bala Nov 14 '13 at 8:53
  • Hi Bala: I'd suggest moving this down to the answer section below. I've not yet tried but that sounds like something to test today. Thank you. – Rick Nov 14 '13 at 15:11
  • Bala: That filter works nicely. First, please put it in the answers! :) Second question is how to only expose parent level taxonomy in the drop down menu? – Rick Nov 14 '13 at 16:40
  • I updated my answer and for the second you asked the another question, so I answered there. – Bala Nov 15 '13 at 4:45
  • @Richard, I think this duplicate to drupal.stackexchange.com/questions/94246/… – Jayendra Kainthola Nov 15 '13 at 4:48
1

Add " Taxonomy: Term ID (with depth)" and set the depth to "1" it will show the first level of terms.

For Drupal 6:

Views Taxonomy: limit exposed dropdown by term depth module provides enhanced functionality for the exposed dropdown filter for taxonomy terms in Views.

Exposed term filters can already be limited to display only terms selected in the Views interface. But what if content creators add new taxonomy terms? They will have to navigate the Views interface and add these new terms to the list of terms shown by exposed filters.

  • An otherwise excellent answer and worthy of an upvote (which I did). But, I'm using D7. I've just edited my question to jot down that information. – Rick Nov 14 '13 at 15:10
  • @Richard did you find answer for D7? – sepehr Dec 10 '14 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.