I was just thinking about your question. If you want Paginator to generate
links with query parameters indeed it's not straightforward. But if you want to
optionally allow users to specify the page in the URL, add code like the
following in a (possibly anonymous) subclass of Paginator (example sets number
per page):
override def paginate(ns: NodeSeq) = {
S.param("num").foreach(num = _)
super.paginate(ns)
}
-------------------------------------
night_stalker<[email protected]> wrote:
Hi all, I've just tried the PaginatedSnippet and is willing to make
some query pages with it, but the url parameter looks not very good (I
got a "/post?F1054255562605UD5=_ ").
So —— how to make paginated page's url more friendly? I'd prefer
something like "/posts?page=2".
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---