Page Author and Revision number ?

Mohammad Saif ul haq asked on March 11, 2014 08:14

Hi!

Can i get some info on Page author (Name of a content editor who created the page) and Document/page revision number (How many number of time a particular document has been modified) in Kentico, can it be posible through "CMS.CMSHelper.CMSContext" ?

Recent Answers


Richard Sustek answered on March 11, 2014 10:24

Hi,

Thank you for your message.

You can get the UserID who created document like this:

CMSContext.CurrentDocument.GetStringValue("DocumentCreatedByUserID", "");

With the help of UserInfoProvider you can easily get the UserInfo and his name or whatever else you need to.

Also what revision you have in mind? I would recommend exploring the properties of CMSContext.CurrentDocument so that you can get whatever you need.

Kind regards,

Richard Sustek

1 votesVote for this answer Mark as a Correct answer

Mohammad Saif ul haq answered on March 12, 2014 05:03

Hi,

Thanks a lot, By revision i mean is there a way i can get version number or revision number of the document ? like when document is created in CMS it would have 1.0 version, when it is modified it will have 1.1 and so on, Does Kentico maintains the document version history ?

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.