How do you select nodes that aren't on a pages ancestor list?
I have a tree that looks like
- Content
- Contentpages
- Types
- ListofTypes
I want to get the list of types from within a content page, so i need to navigate up the content tree and back down the Types branch, or start from the very root of Umbraco - any ideas?
You navigate up by using "..", e.g. parent of currentpage is "$currentPage/.." and concat further navigation like "$currentPage/../node [@nodeTypeAlias='Types'] etc.
You can refer to the root in pultiple ways, e.g. "
How do you select nodes that aren't on a pages ancestor list?
I have a tree that looks like
- Content
- Contentpages
- Types
- ListofTypes
I want to get the list of types from within a content page, so i need to navigate up the content tree and back down the Types branch, or start from the very root of Umbraco - any ideas?
Thanks
Check out xpath.
You navigate up by using "..", e.g. parent of currentpage is "$currentPage/.." and concat further navigation like "$currentPage/../node [@nodeTypeAlias='Types'] etc.
You can refer to the root in pultiple ways, e.g. "
is working on a reply...