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 288 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 3074 posts 13631 karma points MVP 11x 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

Please Sign in or register to post replies

Write your reply to:

Draft