The default behaviour for the MixitUp view type is to use operator "AND" when chosen few items.

For example, imagine you have taxonomy: car, truck, bus and each node has one of the term but no others.

On the view page: you will have checkboxes with corresponded terms. But when you'll chose to see truck and car(ex) you'll have empty rows as a result, because filters seem to display only nodes with both (car+truck) terms.  In some cases it will be usefull to use different behaviour ex. when chosen car+truck user will see both categories.

I propose to implement view option to control this behaviour. Seems to be wise idea to use select box called filters condition with variants: "AND" and "OR" as an available items.

CommentFileSizeAuthor
#2 conditional-option-2992357-2.patch4.18 KBextatic

Comments

Extatic created an issue. See original summary.

extatic’s picture

StatusFileSize
new4.18 KB

The next patch creates an ability to choose filters agregation type from options "OR" and "AND" on the view settings page. Behaviour of the checkboxes now depends on this option.

extatic’s picture

Status: Active » Needs review
ysamoylenko’s picture

Status: Needs review » Reviewed & tested by the community

Thank you for your work. The patch works fine. This functionality will be added in the next module release.

  • ysamoylenko committed 5c9c6c1 on 8.x-1.x authored by Extatic
    Issue #2992357 by Extatic: Type of the condition for the mixitup...
ysamoylenko’s picture

Status: Reviewed & tested by the community » Fixed

The patch was committed. Thank you.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.