I have an application with a menu which has too many items. I would
like to move some of the menu items into submenus.
For example, let's say I have menu items called "Client Admin" and
"Custom Content" at the top level and I want to put them under a new
top level menu item called "Site Admin". Using the example code from
the lift sites sandbox as a guide, the code for this might look
something like:
Menu(Loc("SiteAdmin", List("site_admin", "index"), "Site Admin",
ifIsLoggedIn, ifIsSuperUser),
Menu(Loc("ClientAdmin", List("client_admin", "index"),
"Client Mgt", ifIsLoggedIn, ifIsSuperUser)),
Menu(Loc("CustomContent", List("custom_content", "index"),
"Custom Content", ifIsLoggedIn, ifIsSuperUser))
))
In the above example, the "Site Admin" menu takes you to a new page (/
site_admin/index). However, I really just want to stay on the current
page and show the two sub-menu items.
When I use the current page in the Loc() expression for SiteAdmin, I
don't get the sub menu items when I click on "Site Admin".
Does anyone have a suggestion on how to have the sub-menu items in the
above example show when I click on "Site Admin" without requiring that
the browser navigate to a new page?
Many thanks in advance.
Dano
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---