Copied to clipboard

Flag this post as spam?

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


  • Paul de Quant 394 posts 1477 karma points
    May 17, 2016 @ 10:58
    Paul de Quant
    0

    UnpublishAt Field

    Hello,

    Can anyone tell me how I can access the value of UnpublishAt - does anyone know what the system alias is called for that and if its possible to call it from a razor script.

    Many thanks

    Paul

  • Dan Diplo 1505 posts 5911 karma points MVP 4x c-trib
    May 17, 2016 @ 11:55
    Dan Diplo
    100

    You have to use the ContentService to get an instance of IContent - this has ReleaseDate and ExpiryDate properties.

    See https://our.umbraco.org/documentation/reference/management/services/contentservice

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies