There are two ways to handle simple links: 1. If you want some function to be executed when the link is clicked, use SHtml.link from a snippet or view: SHtml.link("page2", () => ..., Text("Some Link")) 2. If you just want a link, just use plain XHTML: <a href="page2" >Some Link</a>.
Note that in either case we leave the suffix off of the target page. This is because Lift will try a variety of suffixes to match language and file type automatically. Derek On Mon, Jun 15, 2009 at 6:10 AM, mr revuza <rev...@gmail.com> wrote: > > Just getting started previewing Lift. It looks cool. The demos looks > cool as does the todo sample. > > One thing I do not see is an example of doing a simple link to another > page (ie. from page1.html adding an <a> tag to page2.html). Is there > an appropriate <lift:?> incantation to link to another page that is > not registered as a menu item? Is there some other place in the > bootstrap where pages would be listed? Or is it appropriate add the > full path to page2.html from within page1.html and be done? > > Also, is there an example available of hiding menu items for users > that are not logged in? For example, if I wanted to add an "Add Todo" > and "View Todo" item to the menu only once the user has logged in. > > Finally, is there an example available of overriding some of the > behavior of the MetaMegaProtoUser? For example if I did not want to > have a timezone or locale column, or perhaps at the least not exposing > those through the sign up page? > > Thank you for you insights > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---