Recursive Page tree traversing
This is an open discussion with no replies, filed under XSLT.
Search
Create an account or sign in to comment.
This is an open discussion with no replies, filed under XSLT.
Create an account or sign in to comment.
Quick Links
Symphony • Open Source XSLT CMS
--with-xsl
)
Hi Guys,
I am fiddling with a little XSL snippet to create a permalink of a certain page. The use case is that I have a page (possibly nested) and need to construct the complete url (with parent-handles if any). It's like the opposite of the familiar recursive navigation: we have an endnode
/page-handle
and need to prefix it with it's parent's handles:/parent/sub/page-handle
Anyway, this has been discussed more than once and I know of e.g. the Breadcrumb field but I thought I'd try my hand at a little XSL.
However, I'm just starting with XSL and recursion makes my head hurt. I believe this works but could you take a look and see how it can be improved?
You would call the template as such: