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

Forums / Developing with Sitefinity / CommentsSortExpression help

CommentsSortExpression help

4 posts, 0 answered
  1. ddblee
    ddblee avatar
    20 posts
    Registered:
    24 Jul 2008
    18 Nov 2008
    Link to this post
    Hi!

    http://www.sitefinity.com/help/developer-manual/telerik.cms.engine-telerik.cms.engine.contentmanager-commentssortexpression.html

    Does anybody out there know what are the valid values that can be passed to this property? We're looking to be able to sort comments, but this page gives very little help in that regard.

    Thanks!

  2. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    19 Nov 2008
    Link to this post
    I'm not sure, but the following thread might be helpful to you:

    http://www.sitefinity.com/support/forums/support-forum-thread/b1043S-bgccge.aspx

    Gabe Sumner
    http://www.goondocks.com/
  3. Gabe Sumner
    Gabe Sumner avatar
    440 posts
    Registered:
    09 Sep 2007
    19 Nov 2008
    Link to this post
    Also, I believe Comments are Generic Content based (please someone correct me if I'm wrong).  If this is true, then many properties shown on the following page could be used as sort parameters:

    http://www.sitefinity.com/help/developer-manual/important-interfaces-generic-content.html

    Gabe Sumner
    http://www.goondocks.com/


  4. Pepi
    Pepi avatar
    981 posts
    Registered:
    31 Jan 2017
    19 Nov 2008
    Link to this post
    Hi Lee,

    The available keys for the sorting expression are:

    • "ID" - ID of the comment
    • "TextValue" - text of the comment
    • "Author" - comment author
    • "Email" - email of author
    • "WebSite" - web site of author
    • "Visible" - visible value (true or false)
    • "DateCreated" - date of creation of comment
    • "IpAddress" - IP address of author 
    • "Owner"- owner of comment
    • "CntID" - parent content item ID
    For details please refer to the following Developer Manual topic: Finding Comments

    Do let us know if you need any further assistance.

    Best wishes,
    Pepi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Register for webinar
4 posts, 0 answered