Sorry for my fuzzy title. The problem I have is that I have a view that lists 2 different content types. Now I want to use a filter that will only filter on ONE of the content types that is listed.

Say I have one content type named "Album", and one content type named "Songs" that gets listed in the same view. Now I still need to have them both listed in the same view, but I want to add the filter "First letter is A" to the songs ONLY. So the Albums gets listed as before, but the songs that doesn't start with the letter A is removed.

Is there any way to accomplish this?

1 Answer 1

  1. Create a filter that filters on content type for Album
  2. Create a filter that filters on content type for Songs
  3. Create a filter that filters on title (set it to exposed and set the operator to "Starts with"
  4. Under Filter Criteria instead of add, click on the arrow and choose "And/Or, Rearrange"
  5. Click "Create new filter group"
  6. Now drag the filter created in step 2 and 3 to the new group (Songs and Title)
  7. Make sure the operator between the filter groups is OR and the operators between the filters in a group are set to AND

Your filters should look like enter image description here

  • Hahaha ofc! I've totally forgot this. Thanks you! I'll try it this way and I'll get back to you.
    – Daniel
    Jan 29, 2014 at 21:18
  • Now I've bounce into another problem. I want to use a contextual filter, this also on just ONE of the listed contenttypes. I want it to list one of the contenttypes that is referenced on the current node, and the other contenttype should get listed ALL of them. Any ideas?
    – Daniel
    Jan 30, 2014 at 20:41
  • If the answer provided was helpful to you it would be nice to mark it as accepted :) drupal.stackexchange.com/help/someone-answers
    – devunder
    Jan 30, 2014 at 21:02
  • Ofcource, sorry ^^ But I'm not totally sure if it will work with this solution anyway, with my other problem in mind.
    – Daniel
    Jan 30, 2014 at 21:07
  • Well ok but that other problem was not in the original question :) Perhaps it's better to ask a new question.
    – devunder
    Jan 30, 2014 at 21:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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