masterlopau
masterlopau

Reputation: 563

How to get the date of the content initial published date?

In Kentico, is there a way to know the date the content was published for the first time? In the view_cms_tree_joined view there are fields called DocumentLastPublished and DocumentCreatedWhen but the latter is populated when the user save the content initially even if it's not published and the former is updated when the content is republished. Should I look at the workflowversionhistory?

Upvotes: 0

Views: 229

Answers (1)

Brenden Kehren
Brenden Kehren

Reputation: 6117

You'd have to look through the workflow history for that document and get the initial publish state. If you don't want to do that (might be pretty messy and lengthy) you could always add a field to the page type for an initial publish date which will allow someone to add that date or default to when it is saved and not allow it to be editable after it is saved by using a macro on the enabled property of that field.

Upvotes: 3

Related Questions