Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Streety 358 posts 568 karma points
    Mar 22, 2012 @ 10:24
    Streety
    0

    Anthony,

     

    Is there any way to expose the creation date of blog comments? I have a client who is retrospectively adding comments from his old blog and the comment post date needs to be corrected.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Mar 26, 2012 @ 00:38
    Anthony Dang
    0

    You could modify the comment doctype to have a comment date property.

    Then in the razor scripts you can render what ever you like.

    This will allow you to create comments and backdate them.

    Note: if you go down this road, for new comments (non-backdated ones), you'll have to modify the ublogsy source to store the date in the new property, or do a check in the razor script...

    Check for your new property, then default to the standard Umbraco node property CreateDate.

    It's better to modfify the source.

    Alternatively, you could add an event hook on creation of comment nodes

     

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Aug 14, 2012 @ 11:56
    Anthony Dang
    0

    Btw I've added this property to 2.1.1.

    I think it's useful to retrospectively add comments if you're say importing them from another system.

     

Please Sign in or register to post replies

Write your reply to:

Draft