Hierarchical transformations - Changing Sublevel transformation

jason zerr asked on January 6, 2020 18:56

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.

Correct Answer

Roman Hutnyk answered on January 9, 2020 13:41

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.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Keio Kwan answered on January 9, 2020 15:35

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.

0 votesVote for this answer Mark as a Correct answer

jason zerr answered on January 9, 2020 15:58

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.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.