Hello
Is it possible to add a Loc to the menu which would point to a file in
webapp/allcategories.html but the url that would be visible to the
user would be http://localhost:8080/categories/all
I know i could do this using a rewrite rule like so:
LiftRules.rewrite.append {
case RewriteRequest( /* making it pretty */
ParsePath(List("categories"::"all"),_,_,_),_,_) =>
RewriteResponse("allcategories" :: Nil)
}
But i want the link created by Menu.builder to have the structure
http://localhost:8080/categories/all
I want to be able to have a folder structure that is independent of my
url structure
Currently the menu i'm talking about is constructed like so: Menu(Loc
("Alle_Kategorier", List("allcategories"), "Alle Kategorier"))
Heh I hope you can follow my train of though ;)
Cheers
--
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.