You are here

README.txt in Composite Views Filter 7

Composite Views Filter
====

Allows you to create one filter condition that enables a bunch of filter
conditions. Sometimes one condition isn't enough for your filter, but you
still want the user to be able to change the filter (group).

For example
----

You have a View that lists human relationships. You might want a filter that
shows all Males in love with Females. That would require 2 conditions: 1) side
A = male and 2) side B = female. This would be a group. You'll also want the
opposite filter: Females in love with Males. That would be another group. You
might also want to show all gay relationships where both sides are older than
60. This would require several conditions (and be another group).

How?
----

You add a special filter: "Global: Composite Filter". Be sure to expose it.
You can define groups in this filter's settings. For instance:

	m2f|Boys loving girls
	f2m|Girls loving boys

These groups are then available when adding other filters.

You will create ALL filters the same way as usual: a whole list of conditions
under the "Filter criteria" header in a View. You can add every condition to
one particular group (or to none, which means it's always active).

The result will be a dropdown with your group names (and a general option to
show all results). If you add more exposed filters (not within a group!),
those will show up the usual way. No problem.

How advanced?
----

The sky is the limit?

File

README.txt
View source
  1. Composite Views Filter
  2. ====
  3. Allows you to create one filter condition that enables a bunch of filter
  4. conditions. Sometimes one condition isn't enough for your filter, but you
  5. still want the user to be able to change the filter (group).
  6. For example
  7. ----
  8. You have a View that lists human relationships. You might want a filter that
  9. shows all Males in love with Females. That would require 2 conditions: 1) side
  10. A = male and 2) side B = female. This would be a group. You'll also want the
  11. opposite filter: Females in love with Males. That would be another group. You
  12. might also want to show all gay relationships where both sides are older than
  13. 60. This would require several conditions (and be another group).
  14. How?
  15. ----
  16. You add a special filter: "Global: Composite Filter". Be sure to expose it.
  17. You can define groups in this filter's settings. For instance:
  18. m2f|Boys loving girls
  19. f2m|Girls loving boys
  20. These groups are then available when adding other filters.
  21. You will create ALL filters the same way as usual: a whole list of conditions
  22. under the "Filter criteria" header in a View. You can add every condition to
  23. one particular group (or to none, which means it's always active).
  24. The result will be a dropdown with your group names (and a general option to
  25. show all results). If you add more exposed filters (not within a group!),
  26. those will show up the usual way. No problem.
  27. How advanced?
  28. ----
  29. The sky is the limit?