ignore

Agile IT asked on April 18, 2017 08:49

ignore

Correct Answer

Roman Hutnyk answered on April 18, 2017 11:10

First link implements your case. Your item transformation should be similar to this:

<li class="{% if (IsCurrentDocument()) { return "CMSListMenuHighlightedLI" } else { return "CMSListMenuLI" } |(identity)GlobalAdministrator%}</a>
  {^SubLevelPlaceHolder^}
</li>

{^SubLevelPlaceHolder^} will be replaced with <ul> with second level items.

2 votesVote for this answer Unmark Correct answer

Recent Answers


Roman Hutnyk answered on April 18, 2017 09:02 (last edited on April 18, 2017 09:04)

1 votesVote for this answer Mark as a Correct answer

Agile IT answered on April 18, 2017 10:36 (last edited on April 18, 2017 10:39)

I followed above tutorial and have stuck on following "submenu" is container type and I need to display name of it above second "ul" how can we get the name of container.

Also, actual menu items are Content only pages. so from custom field I am getting name and link for the menu.

0 votesVote for this answer Mark as a Correct answer

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