CurrentPage.AncestorOrSelf(1) vs. CurrentPage.Site()
Hi
Can anyone explain the difference between CurrentPage.AncestorOrSelf(1) and CurrentPage.Site()?
From my understanding AncestorOrSelf(1) checks if the node is at level 1, and if it's not it will take the ancestor that is.
But how is CurrentPage.Site() different from this?
CurrentPage.AncestorOrSelf(1) vs. CurrentPage.Site() are the same method, Site() was created for convenience and less letters in the code. So .Site() is more preferable method of getting root node.
CurrentPage.AncestorOrSelf(1) vs. CurrentPage.Site()
Hi
Can anyone explain the difference between CurrentPage.AncestorOrSelf(1) and CurrentPage.Site()?
From my understanding AncestorOrSelf(1) checks if the node is at level 1, and if it's not it will take the ancestor that is. But how is CurrentPage.Site() different from this?
Thanks in advance
it acts like :
Hi Christoffer
CurrentPage.AncestorOrSelf(1) vs. CurrentPage.Site() are the same method, Site() was created for convenience and less letters in the code. So .Site() is more preferable method of getting root node.
Thanks, Alex
is working on a reply...