More in this section
Forums / Designing & Styling / Selection By Categories

Selection By Categories

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Haroon
    Haroon avatar
    4 posts
    01 Dec 2011
    24 Jan 2012
    Link to this post
    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
  2. Lubomir Velkov
    Lubomir Velkov avatar
    688 posts
    03 Nov 2014
    27 Jan 2012
    Link to this post
    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
2 posts, 0 answered