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.
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
Comment Dates
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.
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
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.
is working on a reply...