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...
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
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...
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.