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 89 posts 235 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 359 posts 842 karma points
    May 21, 2019 @ 10:29
    Matt
    0

    Have you tried clearing your cache?

  • David Gregory 89 posts 235 karma points
    May 21, 2019 @ 10:33
    David Gregory
    0

    yes tried that, no change.

  • 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