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 am using Umbraco.Content(id).ChildrenAsList()
to return a collection of nodes.
I want to iterate through each node but before I perform some operations on it I want to check if it has been published.
How can this be done?
Thanks a lot!
Hi Damon,
Umbraco.Content will return only published nodes so you don't need to check.
Umbraco.Content
Jeavon
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
Check if node is published or not?
Hi,
I am using Umbraco.Content(id).ChildrenAsList()
to return a collection of nodes.
I want to iterate through each node but before I perform some operations on it I want to check if it has been published.
How can this be done?
Thanks a lot!
Hi Damon,
Umbraco.Content
will return only published nodes so you don't need to check.Jeavon
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.