-
New Feature
-
Resolution: Outdated
-
Neutral
-
None
-
None
-
None
-
-
Yes
-
Empty show more show less
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:
<ul>
[#assign localizedLinks=model.localizedLinks!]
[#list localizedLinks?keys as lang]
<li><a href="${localizedLinks[lang]}">${lang}</a></li>
[/#list]
</ul>
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)
- is superseded by
-
MGNLDEMO-67 When I browse the demo I can switch the language so that no matter where I am I can see the content in another language.
- Closed
- mentioned in
-
Wiki Page Loading...