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 snippets:
{code}
<ul>
[#assign localizedLinks=model.localizedLinks!]
[#list localizedLinks?keys as lang]
  <li><a href="${localizedLinks[lang]}">${lang}</a></li>
[/#list]
</ul>
{code}

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