Forum
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Login
Service Desk
Order
Sections
Get started
Dynamicweb 9
Dynamicweb 10
Swift
Templating
Community
Downloads
Forum
DevBlog
Forum management
Threads started by me
Threads I participate in
Developer forum
×
E-mail notifications
E-mail
I'd like to be informed of the updates
Don't bother me with any emails
Forum
»
Templates
»
Root page in navigation
Root page in navigation
E-mail notifications
Reply
Posted on 22/06/2010 22:04:36
Hi guys
If I have a page structure like this:
- Page 1
- Page 2
- Page 3
- Page 4
- Page 5
- Page 6
Then how can I for page 2, 3, 4 and 6 find the top pages: "Page 1" and "Page 6" ?
Replies
Posted on 23/06/2010 10:56:55
Reply
Hi Martin
I believe an xPath looking like this would get you the top pagename, for your current element.
ancestor::Page[@AbsoluteLevel = '1']/@MenuText
If you need to know more on axes check out this page:
http://pimpmyxslt.com/axesviz.aspx
You must be logged in to post in the forum
Login
Username
Password
Forgot your password?