Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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
Have you tried clearing your cache?
yes tried that, no change.
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
Test1 and test2 here are unpublished but this code returns them.
any ideas?
Umbraco 8.02
Have you tried clearing your cache?
yes tried that, no change.
is working on a reply...