Page 1 of 1

Adamantium menu (active index)

Posted: 14 Apr 2017, 16:30
by Zardo
Hello, is there a way to control the active SubMenu index and the active item index of an adamatium's Menu? (pm:menu).

Example (index within parenthesis):

Code: Select all

A (0)
     a1 (0)
     a2 (1)
B (1)
   b1 (0)
   b2 (1)
   b3 (2)

Thx

Re: Adamantium menu (active index)

Posted: 17 Apr 2017, 09:11
by aragorn
I think you can add the id of submenu or menuitem into cookie. Exp;

Code: Select all

//JS
PF('AdamantiumMenu').addMenuitem('id');
PF('AdamantiumMenu').saveMenuState();

//XHTML
<pm:menu widgetVar="AdamantiumMenu">