Copied to clipboard

Flag this post as spam?

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


  • James Patterson 53 posts 192 karma points
    May 27, 2014 @ 10:42
    James Patterson
    0

    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

  • Charles Afford 1163 posts 1709 karma points
    May 27, 2014 @ 13:36
    Charles Afford
    0

    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 :)

    .


     

Please Sign in or register to post replies

Write your reply to:

Draft