I am sure this is only a matter of getting the correct relationship/argument setup, but I haven't been able to figure it out. I have a vocabulary with several hundred terms. I have a view that only shows the user's flagged content (nodes), and I have an exposed taxonomy filter. The problem is that I only want to see the taxonomy terms associated with the user's flagged content in the exposed taxonomy filter and not the entire list of terms. Has anyone done something like this and could provide some feedback?

Comments

quicksketch’s picture

Status: Active » Closed (fixed)

This is generally not possible (at least through any UI) because it requires an additional query that does not exist. In order to do what you're describing, you need to do one query just to get a list of taxonomy terms, then after displaying them in the exposed filter the View would do the normal query.

So what you're describing is actually something like "Custom exposed filters", in which you'd need to assemble a custom list within your exposed filter form and tie that to Taxonomy terms. This request is not specifically related to Flag module at all, since the criteria you use for creating your original list really could be anything. This request is more asking that the Taxonomy exposed filter is improved. I'd suggest either filing an issue with the Views module or perhaps http://drupal.org/project/better_exposed_filters could help with this.

I'm closing this issue directly due to its age.