Copied to clipboard

Flag this post as spam?

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


  • k 255 posts 652 karma points
    Apr 16, 2019 @ 11:06
    k
    0

    Alias of unpublish date

    Hello,

    How do we get the alias of the unpublish date from umbraco ? enter image description here

    Thanks,

    Kusum

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 16, 2019 @ 16:36
    Alex Skrypnyk
    100

    Hi Kusum

    Unpublishing date is not a node property, so you can't get it from node by alias, read more how it works - https://our.umbraco.com/documentation/Getting-Started/Data/Scheduled-Publishing/

    Thanks,

    Alex

  • k 255 posts 652 karma points
    Apr 17, 2019 @ 05:42
    k
    0

    Thanks Alex.

  • k 255 posts 652 karma points
    Apr 22, 2019 @ 10:37
    k
    0

    Is it possible to override the unpublished value in the database with another value ?

  • Alex Skrypnyk 5908 posts 22603 karma points MVP 4x admin c-trib
    Apr 22, 2019 @ 11:38
    Alex Skrypnyk
    0

    Hi Kusum

    Check "ExpireDate" property of IContent.

    var item = ApplicationContext.Current.Services.ContentService.GetById(1212);
        var unpublishDate = item.ExpireDate;
    
  • k 255 posts 652 karma points
    Apr 22, 2019 @ 14:50
    k
    0

    hello Alex,

    Thanks for your reply.

    But I want to do the reverse that is add an input value via a field to the unpublished dated in the info tab.

  • 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