I've been wrapping my head around the hierarchical transformation as outlined
here and I have been enjoying the power and flexibility this approach has.
What I have not figured out, however, is how to check to see if an item is an ancestor to the current page.
Example:
- root
---- Primary Page 1
-------- Secondary Page 1
------------ Tertiary Page 1
---- Primary Page 2
-------- Secondary Page 2
------------ Tertiary Page 2
What I'd like to do is apply a CSS class in the transformation that processes the Primary Page if the current page is below it in the hierarchy.
So in this case if the current page was Tertiary Page 1, Primary Page 1 would need the class.
Is there a simple macro if/then statement I can use to determine that?