Copied to clipboard

Flag this post as spam?

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


  • JohnC 37 posts 61 karma points
    May 18, 2012 @ 16:48
    JohnC
    0

    5.1 IsDescendantOrSelf

    Hi,

    Does anyone know if this function has been implemented in a different way in umbraco 5.1?

     

    THanks

    John

  • JohnC 37 posts 61 karma points
    May 23, 2012 @ 10:14
    JohnC
    0

    For anyone who cares the solution to this is to do something like:

    if(CurrentPage.AncestorsOrSelf.Where("Id = @0", childPage.Id).Any()) {

    //doSomething

    }

Please Sign in or register to post replies

Write your reply to:

Draft