Hi there, Let's say i have a property on a master template and i wan't to access this property on child templates, i can do that using the recursive parameter, right?
But how can i get something similar inside a macro? I'm trying to use macro to render a logo, however, this macro can be used on any sub page including different levels, so this won't work:
Equivalent to "recursive" on macros
Hi there,
Let's say i have a property on a master template and i wan't to access this property on child templates, i can do that using the recursive parameter, right?
But how can i get something similar inside a macro? I'm trying to use macro to render a logo, however, this macro can be used on any sub page including different levels, so this won't work:
Is my only option loop through all parent nodes until i get to the master page? Here is my tree:
Hi CodeMaster2008,
You can do that by taking the value from the first node in the ancestor-or-self:: axis that has that property; like this:
(Depending on the context, you might not need to include the $currentPage parameter)
/Chriztian
Thanks a lot, exactly what i need.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.