Copied to clipboard

Flag this post as spam?

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


  • David Gregory 82 posts 208 karma points
    May 21, 2019 @ 09:34
    David Gregory
    0

    Unpublished items being returned

    Hi

    I have a partial view that gets the children of the current page and displays them in a list. Problem is, it's returning unpublished items.

    enter image description here

    Test1 and test2 here are unpublished but this code returns them.

    var selection = Model.Children.Where(x => x.IsVisible()).ToArray();
    

    any ideas?

    Umbraco 8.02

  • Matt 353 posts 825 karma points
    May 21, 2019 @ 10:29
    Matt
    0

    Have you tried clearing your cache?

  • David Gregory 82 posts 208 karma points
    May 21, 2019 @ 10:33
    David Gregory
    0

    yes tried that, no change.

Please Sign in or register to post replies

Write your reply to:

Draft