Filtering by taxonomy in views

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
trista13's picture

I've been playing around in views for awhile, but I can't seem to filter a view by taxonomy term. Ideally, I'd like to create a view that displays an alphabetical list (it's of hyperlinks) and then let's users change the list by selecting the taxonomy term to narrow the list to just that category (for example: health resources). But, I've also been trying to just create a view using the taxonomy as a filter and then creating links to the different views. I feel like this should be easy to do (maybe if I could write SQL queries, it would be), but I'm not getting anywhere. Any advice, commiseration or help is greatly appreciated!

Comments

I should add that I did try

trista13's picture

I should add that I did try using filter and selecting the field that included the taxonomy (both delta and term id because I wasn't sure what the difference was) and one did nothing and one eliminated everything.

Arguments?

opegasus's picture

As I recall, arguments are what get passed into the URL. One (I believe) sets up ones filters or sort to have exposed filters or drop downs so the user can select.

Best guess at this point, hopefully a more experienced 'chimer' will drop by.

Thanks! I was messing around

trista13's picture

Thanks! I was messing around in arguments a bit, but was kind of confused. I'll experiment a bit and see if I come up with anything!

Sounds like you're close...

scottrouse's picture

Try adding a filter of type Taxonomy: Term ID (with depth). When configuring that filter, you'll be able to choose which Vocabulary you'll be filtering and the type of selector you'll use to enter the term (Dropdown or Autocomplete) (I like Dropdown.). That should take care of the View for you.

If you want to accomplish your final goal, try exposing that filter to give your users access to the drop-down list.

Best,
Scott

Cool...

opegasus's picture

Thanks Scott, was close (sort of) but you nailed it.

SUCCESS!! Yay!! Thanks Scott.

trista13's picture

SUCCESS!! Yay!! Thanks Scott. I knew there had to be a way to accomplish that.

Cool

scottrouse's picture

I'm glad it worked for you. Let us know if you have any other questions.