Selection By Categories - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Selection By Categories

  • 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 .

    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.

    Kind regards,
    Lubomir Velkov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items