Using checkboxes for controlling Filtering of your Dynamic collection has its own benefits and allows you to create a "combined filtering" (it is not a multi-dimensional filtering). It can be setup with two different type of filtering logic.
Required structure of the Dynamic Item and process of applying classes were described in the Filtering CMS Content tutorial.
After container with Dynamic Items was created and all necessary classes (for filtering and sorting) were applied we can start building our Controls. For being able to use checkbox elements we have to put them inside the Form.
Custom code for this type of controls look most complicated, but if imaginary divide it into 4 parts it will be not so scary.
Coma for the "OR" logic
Empty string for the "AND logic
This example above is fully functional, feel free to try Filtering or Sorting.
Now we will include link to the MixitUp3 library and all our code snippets inside the <script> </script>tags before the closing tag into the page custom code area.
Full code for this example will look like this: