[ 
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: 1.3.2
                       (was: 1.3.1)

> 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
>            Assignee: Philipp Bärfuss
>             Fix For: 1.3.x
>
>         Attachments: 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/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to