1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Can categories and tags be used in a SortExpression?

Can categories and tags be used in a SortExpression?

3 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    25 Jul 2012
    Link to this post
    In the documents list widget->advanced->controldefinition->views->MasterXView

    There's a filter and sort expression, and we seem to be able to (quite easily) filter and sort...however we very very much want to filter by TAXONIDs in there as well as the options set in the designer aren't always the logic we want (mix of ANDs and ORs, not configurable)

    Doable?
  2. KMac
    KMac avatar
    133 posts
    Registered:
    15 Dec 2008
    25 Jul 2012
    Link to this post
    Hey Steve,

    We often filter by taxonid by doing this: Visible = true AND Status = Live AND MyCustomFieldName.Contains("{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx}")

    Where the xxxx are the actual ID of the Taxon you need to filter by. Is that what you're looking for?
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    25 Jul 2012
    Link to this post
    Hmm, I think that's it! :)

    Thanks much!
3 posts, 0 answered