programmatic create submenu item

Topics: General, Writing modules
Oct 11, 2011 at 8:02 PM

is it possible to create a submenu item programmatic like:

builder.Add(T("MainMenuItem"), "1", item => item.Url(""));

builder.Add(T("SubMenuItem"), "1.1", item => item.Url(""));

i know there's a advanced menu item where you can add subitems but i want to do it programmticly

Oct 11, 2011 at 8:09 PM

Your best bet is probably to look at the code in the advanced menu.