Why is IPublishedContent.Version property an empty Guid?
I want to get the version of the current IPublishedContent object in a view but the Version property is an empty Guid. Is this a bug or am I not doing something correctly?
I thougtht maybe this is the case for content which is published but for saved and previewed pages this is the case too.
Why is IPublishedContent.Version property an empty Guid?
I want to get the version of the current IPublishedContent object in a view but the Version property is an empty Guid. Is this a bug or am I not doing something correctly?
I thougtht maybe this is the case for content which is published but for saved and previewed pages this is the case too.
Cheers
EDIT: Using Umbraco 6.1.6
I think this is a bug. Dont quote me on it but i think this has been removed from the API for Umbraco 7
http://issues.umbraco.org/issue/U4-2390#tab=Comments
http://issues.umbraco.org/issue/U4-2282
Again dont quote me on it but try creating a new Document using the id from the IPublishedContent
Namespace: umbraco.cms.businesslogic.web
The values from Document are returned straight from the database:
Two Properties i think
.Date()
.VersionDate()
One Method
GetVersionDates()
Charlie :)
.
is working on a reply...