Is it possible to change sublevel transformation in Hierarchical Viewer based on DataItemIndex of the repeater, I am trying to build a mega menu that has nested menu for item 1 in the menu and displays the links in a column based block for all other items in the menu.
I'm afraid you can't specify alternative transformation with hierarchical one, but you could try to implement this logic within the transformation using macro.
Please check below links
As Roman said, you can apply macro condition in transformation of item. Here is more hint that you can use (NodeOrder % 2 == 0) to define odd or even to apply your alt css class.
(NodeOrder % 2 == 0)
Thanks everyone!, I was able to get the results I wanted using a combination of macro conditionals and using field info from the page to apply different classes and structure in a Hierarchical Viewer.
Please, sign in to be able to submit a new answer.