Created
June 23, 2015 15:14
-
-
Save a-r-m-i-n/f3566649b9ebea1940cf to your computer and use it in GitHub Desktop.
TypoScript for creating a language dropdown menu (with select and option tags)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global { | |
| languageLabels { | |
| current = Deutsch | |
| availableSysLanguageUids = 0,1 | |
| additionalParams = &L=0 || &L=1 | |
| availableLabels = Deutsch || English | |
| } | |
| } |
Very nice work. Maybe Line 36 could be:
wrap = <select class="languageSelect" onchange="window.location = this.options[this.selectedIndex].value">|</select>
This will redirect the user after language selection.
Thanks for sharing, it was very useful for me today!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for sharing!