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...
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.
Continue discussion
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...
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.