I am using Media module on a Drupal 7 installation and have created a content type called Media. I then used the Multimedia asset of the Media module, so users can upload both images and videos.

I now want to create a view with the latest videos and also latest photos, but there is not anything on the filter to select a video (or photo). How can I add such a filter?

up vote 1 down vote accepted

Try this:

  • Create a new taxonomy vocabulary called 'Media Type' with terms 'Image' and 'Video.'
  • Add a taxonomy field to your Media content type.
  • Add a taxonomy field to your view (hidden/exposed/however you'd like)

You'll then be able to filter by the value of the taxonomy field.

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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