Copied to clipboard

Flag this post as spam?

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


  • Jonathan Roberts 409 posts 1063 karma points
    Feb 22, 2018 @ 17:27
    Jonathan Roberts
    0

    Unpublished pages still show in isVisible

    Hi, I have set Unpublish dates in the CMS yet pages still show even when I use isVisible. If I manually Unpublish a page it disappears.

    Any ideas?

    Jon

  • Alex Skrypnyk 6163 posts 24143 karma points MVP 8x admin c-trib
    Feb 22, 2018 @ 17:29
    Alex Skrypnyk
    0

    Hi Jonathan

    How are you rendering the pages? Maybe some cache?

    /Alex

  • Anders Bjerner 487 posts 2990 karma points MVP 8x admin c-trib
    Feb 22, 2018 @ 17:38
    Anders Bjerner
    1

    Hi Jonathan,

    There could be a number of issues causing this, and the solution therefore depends a bit on the exact error.

    When you watch the page in the backoffice, does it say that it has been unpublished? Or does Umbraco say that it is still published?

    If the latter, it is most likely because the internal scheduled (un)publishing in Umbraco for some reason doesn't work.

  • Jonathan Roberts 409 posts 1063 karma points
    Feb 23, 2018 @ 09:02
    Jonathan Roberts
    0

    Hi, How do you find out if the page is Unpublished? Is there a property I can use to tell me this? Or is there a Unpublish Date property I can use?

  • Anders Bjerner 487 posts 2990 karma points MVP 8x admin c-trib
    Feb 23, 2018 @ 09:47
    Anders Bjerner
    0

    If you're running an Umbraco version prior to Umbraco 7.8, you can see this under the Properties tab.

    For instance, if you have an unpublished page it should look somewhat like this:

    image

    Whereas a published page should have one or more URLs:

    image

    In Umbraco 7.8, the Properties tab has been replaced with a brand new Info tab, which looks different. But there should be a similar way to check whether the page is actually published.

  • Jonathan Roberts 409 posts 1063 karma points
    Feb 23, 2018 @ 09:53
    Jonathan Roberts
    0

    Hi,

    Apologies - I was wondering if there is a Property in the IPublishedContent code that I can query an expiry date. I know there is is in IContent but Im using IPublishedContent and have pagination to navigation multiple results.

    Thanks Jon

  • Anders Bjerner 487 posts 2990 karma points MVP 8x admin c-trib
    Feb 23, 2018 @ 09:55
    Anders Bjerner
    0

    Nope. This is unfortunately not available in IPublishedContent.

Please Sign in or register to post replies

Write your reply to:

Draft