[Lift] Re: Locale/Language in URL?
Yeah ... Please see LiftRules.urlDecorate In your boot you can say something like: LiftRules.urlDecorate.append { case url = // here add the code that will add the lang query parameter } With this, all URI-s toward your app should have the information you appended. Br's, Marius On May 9, 5:28 am, Franz Bettag fr...@bett.ag wrote: Heyho, anyone has an idea how one might accomplish having the locale/language of the content in the url? since most search engines can't work with cookies and therefore change the language correctly, i wanted to go for URLs like /de/mystuff or /en/mystuff. I guess everyone gets the point. Any ideas how to do that without compromising the whole Sitemap feature? best regards! --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[Lift] Re: [patch] work around for errors running unit tests in IDEA/NetBeans
Folks, I think this patch is cool. Can one of the committers integrate it? Thanks, David On Tue, Apr 28, 2009 at 8:49 AM, James Strachan james.strac...@gmail.comwrote: I was trying out various IDEs to run the unit tests in the lift-webkit module and was getting errors. I guess due to recent changes in scala language version? Here's the trivial patch that fixes it - it seems reflection on the continuation stuff was no longer working http://github.com/jstrachan/liftweb/commit/2ca3b683733969bd8689e36dad99a990711b4071 -- James --- http://macstrac.blogspot.com/ Open Source Integration http://fusesource.com/ -- 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 -~--~~~~--~~--~--~---
[Lift] Record-aware secondary menu?
Hi, In addition to the usual primary menu (Home, List entries, Add entry, Log in/out, ...), I would like to introduce a secondary, record-aware menu to my site. The entries in this menu would contain, for example, Edit current record, Delete current record, Show current record, ... There are multiple types of records (which all have their own separate edit/delete/show/... snippet), and all of those link targets have a corresponding (currently hidden) entry in the sitemap. So I thought it'd be nice if I could reuse the sitemap for this, by creating a separate Loc group for all the secondary menu entries for a given record type. I am currently using SHtml.link and RequestVar's to handle links, e.g. object requestedResource extends RequestVar[Box[T]](Empty) object requestedReturnTarget extends RequestVar[Box[URL]](Empty) SHtml.link(/edit, () = { requestedResource(Full(theRecord)); requestedReturnTarget(Full(returnTarget))) }, Edit) Now I am wondering what's the best way to merge the functionality of the menu with SHtml.link. How can I get a menu entry to use the current values of some RequestVars to generate its link, such as a edit current record menu entry? Or would I have to bring the record-ID into the Loc in order to achieve something like this, such as Menu(Loc(EditRecord, List(record, RecordOps.currentRecord.is.id.toString, edit), Edit)) and then use some pattern matching during dispatching to retrieve the record ID again? Thank you, Clemens --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---