Hi,

Using the file_entity module I have added a taxonomy reference field for files (field_media_tags), which allows files on my page to be tagged the same way as nodes.

I'd like to use these tags to filter a file view, in particular the media browser view provided by the media module (2.x brach). I therefore tried to add field_media_tags as an exposed filter to the view. Unfortunately this only adds an input field, which accepts numeric term ids for filtering, to the exposed form.

How can I turn this input field into a taxonomy term dropdown/select/autocomplete field?

Comments

bforchhammer’s picture

After a little more digging, I think that I'm basically looking for an equivalent of the "Content: has taxonomy term" filter for file views... Would that be hard to add?

dawehner’s picture


After a little more digging, I think that I'm basically looking for an equivalent of the "Content: has taxonomy term" filter for file views... Would that be hard to add?

Yes sort of, because content: has taxonomy term can use the taxonomy_index which does only exists for nodes.

To be able to have such a table davereid created a module: taxonomy_entity_index. There is a patch in the queue of that module which provides this kind of views integration you need.

dawehner’s picture

Status: Active » Fixed

Let's mark this as fixed.

bforchhammer’s picture

Okay, thanks for your reply, dereine.

Status: Fixed » Closed (fixed)

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