Does this work?
List(Foo, Bar).map{model: CRUDify =>
Menu(Loc(...), model.menus: _*)
}
Not tested.
-------------------------------------
The Trav<[email protected]> wrote:
> I'm not sure what you're asking.
> You want a List and Create submenu under each model without duplicate code?
Current menu tree is:
+ Home
+ Create Foo
+ List Foo
+ Create Bar
+ List Bar
+ Create Ork
+ List Ork
+ Some Business
+ Other Business
What I want is:
+Home
- Crud
- Foo
+ Create Foo
+ List Foo
- Bar
+ Create Bar
+ List Bar
- Ork
+ Create Ork
+ List Ork
+ Some Business
+ Other Business
Since Crudify already generates Create and List menu items for me, I
would like to be able to tell Lift "take those menu's you've
generated for me, and put it in this sub menu"
Does that make sense?
--
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.
--
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.