Copied to clipboard

Flag this post as spam?

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


  • Damon 217 posts 287 karma points
    Aug 26, 2015 @ 12:07
    Damon
    0

    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!

  • Jeavon Leopold 3008 posts 13221 karma points MVP 7x admin c-trib
    Aug 26, 2015 @ 13:37
    Jeavon Leopold
    1

    Hi Damon,

    Umbraco.Content will return only published nodes so you don't need to check.

    Jeavon

  • 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