2

I have a view and used Better Exposed Filter module to show this Checkbox to filter the content in the view. The picture may explain the situation properly View Filter with exposed Checkbox

In above filter by criteria, those values are Taxonomy Terms, which will increase later.

However my problem is, I want to have a Checkbox only for Development Taxonomy. So, instead of Filter by and list of Taxonomies, it would only be Filter by Development with a checkbox near to it. When the checkbox is checked it'd show the view which is Listed Under only Development

I tried something like CSS or jQuery show only this taxonomy class and hide other taxonomy terms, but that's last resort.

Any Drupal way I can accomplish this without writing codes?

3

In your filter settings there is an option "Limit to the selected items". Check that and select "Development" from the select field of options and it should do what you are trying to achieve.

Then change the label of your filter as required.

See the attached image: enter image description here

The view itself looks like (note I changed the filter to be cat, not car as in the previous image, because I already had content tagged with cat): enter image description here

  • Thanks for the reply. I could accomplish this easily with new Field as Text or list, but it is quite challenging to do with Taxonomy. I might be referring to something else using Taxonomy as when I check the box, no any result shows. But same filter with new text field works perfectly. – user12947 Oct 3 '13 at 15:27
  • I had to give up the idea of using Taxonomy here, as taxonomy is mere term reference which doesn't technically lie in my content type. – user12947 Oct 3 '13 at 15:32
  • 1
    The example screenshot I included was from me doing it with a taxonomy field. – rooby Oct 3 '13 at 15:32
  • But are you using BEF Module with this? If so, then It'd be great to see your filtered screenshot – user12947 Oct 3 '13 at 15:35
  • Yep, I already had BEF installed on my play site for something else. Image attached in the answer. – rooby Oct 3 '13 at 15:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy