Selection By Categories
Hello There,
I have an urgent question .
I created a module by modulebilder which is awsome feature in 4.4 (Thanks) .
and this module which i created needs to be filtered by 2 categories.
when i select the 2 categories .. it brings items from the 2 categories .. its like Category1 OR Category2 ...
I want to show the items that have 2 categories not any one of them .. like Category1 AND Category2..
is there a way to acomplish this .
Thanks
Haroon Shishani
Hello Haroon,
Go to edit the list widget from your custom module and go to Advanced -> ControlDefinition -> Views -> ModuleFrontendList -> FilterExpression and there add the following at the end
AND Category.Contains((160DC75B-5EA0-4AD2-8358-A411360FDBCE)) AND Category.Contains((584516ED-7F6A-447D-81A8-D1CB016F02B7))
where the two GUIDs are the IDs of the two Category taxa that you must check in the database.