I am using Umbraco CMS and facing a problem in accessing the Contact us page using the AncestorOrSelf
method.
I have tried to explain it by example.
- Content
-- Home (level = 1)
-- About Us (level = 2)
-- Contact Us (level = 2)
-- News Area (level = 2)
-- News Item 1 (level = 3)
-- News Item 2 (level = 3)
-- Other Node (level = 1)
By using Model.Content.AncestorOrSelf(1)
I am getting the Other Node
(level = 1 as in example).
How could I get the contact us page which is under Home level?