On Tue, Dec 29, 2009 at 1:23 PM, Alex Black <[email protected]> wrote:
> I've changed my sitemap from:
>
> Menu(Loc("index", Pair("index" :: Nil, false), "Home")) ::
>
Yes, the / directory will be rendered by Lift as /index There's no way
around that one.
All other subdirectories (e.g., Loc("foo", List("cat", "index"), "Cat"))
will rendered as "/cat/"
This is because some app servers do not do well with the root item in the
given context not having a path.
Also, why do you using "Pair(List(...), false)"?
Pair is deprecated/frowned on... it's much more idomatic to use (List(...),
false), but that's not needed as there's an implicit conversion you can
simply declare the List().
>
> to
>
> Menu(Loc("index", Pair("" :: Nil, false), "Home")) ::
>
> So that my "Home" link goes to mysite.com/ instead of mysite.com/
> index. But, I notice, when you're at mysite.com/ the sitemap doesn't
> show "Home" as selected, is there a way to fix that? Perhaps I've got
> something wrong here.
>
> Thanks,
>
> - Alex
>
> --
>
> 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]<liftweb%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>
>
>
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Surf the harmonics
--
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.