Hi Marvin,

Thanks!
Yeah, I know how to implement this myself, but I was suggesting that this is 
something that should already be in magnolia...
Since magnolia officially offers multi-language support, and it is a pretty 
cool feature, it should be officially part of the templating utils. 

After all, a language switcher will probably be part of ANY i18n website. I 
can't imagine a website that would rely only on the user's locale setting...

Regards from Vienna,

Richard

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Marvin Kerkhoff
Gesendet: Dienstag, 24. Juli 2012 15:18
An: Magnolia User-List
Betreff: AW: [magnolia-user] Re: Language links to actual page (i18n)

Hi Richard,

you can also use your own class for this. What you need to do is to extend your 
config stk renderer and add some java code. Than you can add a function like 
myfn.currentURLAfterLanguageSwitch() or something similar. But what you need to 
know is that you can also add a modelClass, which is much easier for that kind 
of languageSwitch.

Regards from Zürich
Marvin

-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Unger, Richard
Gesendet: Dienstag, 24. Juli 2012 09:26
An: Magnolia User-List
Betreff: AW: [magnolia-user] Re: Language links to actual page (i18n)

Hi Greg,

Maybe you could update the bug to get it incorporated in a future release.

I've implemented language switchers for a couple of sites now. Not actually 
hard to do, even in pure freemarker, but it's hacky, as you have to 
"self-assemble" the URL, rather than using one of the nice methods like 
cmsfn.homeLink().

Would it not be a good solution to add a version of the various Link function 
that takes a language code? Or perhaps a general cmsfn.toLanguage() method that 
takes a link and transforms it into another language version of the same link?

Regards from Vienna,

Richard




-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] 
Im Auftrag von Grégory Joseph (via Magnolia Forums)
Gesendet: Montag, 23. Juli 2012 17:37
An: Magnolia User List
Betreff: [magnolia-user] Re: Language links to actual page (i18n)

There's an example of how to do this here: 
http://jira.magnolia-cms.com/browse/MGNLSTK-616, which unfortunately hasn't 
been picked up and integrated in the main codebase yet.

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=c63ffdf2-b53b-4a0d-a393-7bdcc7549c5d


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------



----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------





----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to