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,
Does anyone know if this function has been implemented in a different way in umbraco 5.1?
THanks
John
For anyone who cares the solution to this is to do something like:
if(CurrentPage.AncestorsOrSelf.Where("Id = @0", childPage.Id).Any()) {
//doSomething
}
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
5.1 IsDescendantOrSelf
Hi,
Does anyone know if this function has been implemented in a different way in umbraco 5.1?
THanks
John
For anyone who cares the solution to this is to do something like:
if(CurrentPage.AncestorsOrSelf.Where("Id = @0", childPage.Id).Any()) {
//doSomething
}
is working on a reply...