On Fri, Aug 14, 2009 at 1:10 AM, xiaomingzhen...@gmail.com <
xiaomingzhen...@gmail.com> wrote:

>
> i am a newer to lift, and now i am reading the book the definitive
> guide to lift. In chapter 5.1, book told me this:
> val helpMenu = Menu(Loc("helpHome",("help" :: "" :: Nil) ->
> true,"Help")) make all the files under help folder accessible, but i
> found the loc object in the Menu item should write like this:
> ("help" :: Nil) -> true. Is that book wrong?
>
> and sometimes i wrote Menu(Loc("Home", "/", "Home")) and got a compile
> wrong, and i have to write Menu(Loc("Home", "/" :: Nil, "Home")). i
> have imported Loc._, why "/" string can not convert to a list? is that
> a lift bug?
>
> besides, does all pages accessible in lift project must be import to
> Sitemap?


No.  If you do not declare the sitemap, then all the pages in the app will
be available, however you'll have to manually enforce access control and
manually build menus.  You can also define particular directories as
"anything in this directory gets served."


> if so, when the website is large, the work may be tiring?


It's been my experience that having a large site is a very good reason to
have SiteMap... you can have each module define its pages, access control,
etc. and roll that up into a nice menu.


>
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to