[ 
http://jira.magnolia-cms.com/browse/MGNLSTK-616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Haderka updated MGNLSTK-616:
--------------------------------

    Fix Version/s: 2.0.5
                       (was: 1.4.x)

> Language switching links
> ------------------------
>
>                 Key: MGNLSTK-616
>                 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-616
>             Project: Magnolia Standard Templating Kit
>          Issue Type: New Feature
>          Components: templates
>            Reporter: Grégory Joseph
>             Fix For: 2.0.5
>
>         Attachments: 
> config.modules.billag-forum-poc.paragraphs.languageSwitchLinks.xml, 
> config.modules.extended-templating-kit.config.sites.billag-poc.templates.prototype.navigation.meta.paragraphs.languageSwitchLinks.xml,
>  languageSwitchLinks.ftl, LanguageSwitchLinks.java, STK-langlinks.txt
>
>
> Since Magnolia/STK support multiple locales per site, it would be useful to 
> provide a simple way for templates to display language switching links.
> By adding the attached code to the default STK model classes, template 
> scripts could then simply render the links with the following snippet:
> {code}
> <ul>
> [#assign localizedLinks=model.localizedLinks!]
> [#list localizedLinks?keys as lang]
>   <li><a href="${localizedLinks[lang]}">${lang}</a></li>
> [/#list]
> </ul>
> {code}
> Note that the provided code is pretty much a hack, mimicing the same hack 
> which i18nAuthoringSupport does; it should be marked as temporary and updated 
> once we can update the i18nContentSupport API and link API to provide this in 
> a cleaner way. (further issues should thus link to this one)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       


----------------------------------------------------------------
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