On Mon, Mar 2, 2009 at 7:44 PM, Ikai Lan <[email protected]> wrote:

> I think I've figured out how to add new pages to Lift:
>
> 1. Create a new HTML file under src/main/webapp/something.html
> 2. To add this to the sitemap, go to Boot.scala and add this:
>
>     val entries = Menu(Loc("Home", List("index"), "Home")) ::
> Menu(Loc("Test", List("test"), "Test")) :: User.sitemap
>
> My understanding is that :: is the concatenation operator in Scala, and we
> are creating a new menu item.
>
> 3. Restart Jetty.
>
> The new page should be added. Eclipse isn't terribly helpful is determining
> errors. Is there a better IDE?


I use NetBeans.  Others have had good luck with IntelliJ.


>
>
> Now my question is - how would I add a new page into a Lift application
> that I do not want integrated into the sitemap?


Menu(Loc("MyHiddenPage", List("hidden"), "hidden", Hidden))

This will allow access to the page, but not display the page in the sitemap.

Is this what you were looking for?


>
>
> >
>


-- 
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to