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

Forums / Developing with Sitefinity / DynamicContentView Query Expression

DynamicContentView Query Expression

2 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    26 Feb 2013
    Link to this post

    If this is my Filter expression...

    Visible = true AND Status = Live AND  Category.Contains("{76fc5c31-868e-42f3-88d1-229754071093}") OR Category.Contains("{0e40c661-9c4f-436f-b1ec-03bfa4422905}")

    It's giving me back duplicate results on a couple items (returning 6)....why would that be, is it query syntax?...or is there the ability to do a distinct on this from the DCV controls

    I mean if it was PURE linq, I'd just do a .Distinct, but here all I can do is pass it in a FilterExpression.

  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    27 Feb 2013
    Link to this post

    Oh!....hmm

     I edited the template and plopped in Eval("Status") ...looks like it's dumping in both Live and Master versions with the query??

    Wierd thing is when I strip that query out to my own api call (based on the module builder code samples) I only get Live items.

    So what causes the above query to return Master...any idea big T?

2 posts, 0 answered