Snippets and SiteMap chapter in Simply Lift

20 views
Skip to first unread message

David Pollak

unread,
Dec 30, 2010, 8:22:54 PM12/30/10
to liftweb
Hot off the presses: http://stable.simply.liftweb.net/#toc-Chapter-3

--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics

Diego Medina

unread,
Dec 31, 2010, 12:44:43 AM12/31/10
to lif...@googlegroups.com
David,

On Thu, Dec 30, 2010 at 8:22 PM, David Pollak
<feeder.of...@gmail.com> wrote:
> Hot off the presses: http://stable.simply.liftweb.net/#toc-Chapter-3
>

I tried the example and I'm having some issues changing values for the
Sitemap section


I originally had:

object Param {
// Create a menu for /param/somedata
val menu = Menu.param[ParamInfo]("Param", "Param",
s => Full(ParamInfo(s)),
pi => pi.theParam) / "param"
lazy val loc = menu.toLoc

def render = "*" #> loc.currentValue.map(_.theParam)
}

It all works great there, but I was trying to change the url from

http://127.0.0.1:8080/param/bar

to

http://127.0.0.1:8080/foo/bar

and I cannot come up with what I need to change to achieve this.

What I have found out so far by changing different values is that:

From

val menu = Menu.param[ParamInfo]("Param", "Param",

the second "Param" is the "name" that will appear on the Sitemap

I changed the first "Param but it does not seem to make any difference.

And if I change

param for "foo" in

pi => pi.theParam) / "param"

then I can no longer access

http://127.0.0.1:8080/param/bar

but this page does not load either

http://127.0.0.1:8080/foo/bar


What am I doing wrong here?

> --
> Lift, the simply functional web framework http://liftweb.net
> Beginning Scala http://www.apress.com/book/view/1430219890
> Follow me: http://twitter.com/dpp
> Blog: http://goodstuff.im
> 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 lif...@googlegroups.com.
> To unsubscribe from this group, send email to
> liftweb+u...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/liftweb?hl=en.
>

--
Diego Medina
Web Developer
http://www.fmpwizard.com

Diego Medina

unread,
Dec 31, 2010, 12:48:28 AM12/31/10
to lif...@googlegroups.com
Never mind

I forgot to create the action foo.html page :)

Reply all
Reply to author
Forward
0 new messages