|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
SiteMap: how to change order and text of menu itemsHello! I am a Lift beginner. I have created a site with archetype 'lift- archetype-basic'. In Boot.scala I add User.sitemap to LiftRules. In my html file I create the menu by using <lift:Menu.builder/>. Question 1: when I am logged in the order of the menu items from User are 'Logout | Edit User | Change Password'. How do I change the order of the menu items from User? I would like to have 'Edit User | Change Password | Logout'. Question 2: the default text of the menu items are in English. How do I change the text of the menu items to another language? Is there a simple way or do I have to implement it as described in http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-with-the-liftweb-framework? Thanks for your help, Henrik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: SiteMap: how to change order and text of menu itemsOoo, thats my blog :-) What is it you dont feel to be straight forward in what I described? You will need to use a locale calculator at the very least, because otherwise Lift has no way of knowing what language is being requested. Cheers, Tim On 9 Nov 2009, at 12:51, hmelchander wrote: > Question 2: the default text of the menu items are in English. How do > I change the text of the menu items to another language? Is there a > simple way or do I have to implement it as described in > http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-with-the-liftweb-framework? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
|
|
Re: SiteMap: how to change order and text of menu itemsThanks for your answer Tim, and yes, I do believe that your description is straightforward. But I was wondering if there is a really easy way to change the text of the Loc's that are generated by User.sitemap; perhaps by manipulating the User object (MetaMegaProtoUser actually)? I have studied the documentation for MetaMegaProtoUser but can't figure out how to change the text or order of the generated Loc's. Best regards, Henrik On Nov 9, 2:41 pm, Timothy Perrett <timo...@...> wrote: > Ooo, thats my blog :-) > > What is it you dont feel to be straight forward in what I described? > You will need to use a locale calculator at the very least, because > otherwise Lift has no way of knowing what language is being requested. > > Cheers, Tim > > On 9 Nov 2009, at 12:51, hmelchander wrote: > > > > > Question 2: the default text of the menu items are in English. How do > > I change the text of the menu items to another language? Is there a > > simple way or do I have to implement it as described in > >http://blog.getintheloop.eu/2009/7/26/how-to-extensive-localization-w... You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@... To unsubscribe from this group, send email to liftweb+unsubscribe@... For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~--- |
| Free embeddable forum powered by Nabble | Forum Help |