Last active
January 13, 2023 10:39
-
-
Save scheibome/6659d8794d3bf8ecd2021aaf2088ac07 to your computer and use it in GitHub Desktop.
Simple language menu in TYPO3
This file contains 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
// Available language ids | |
AVAILABLELANGUAGEIDS = 0,1,2,3 |
This file contains 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
page = PAGE | |
page { | |
10 = FLUIDTEMPLATE | |
10 { | |
dataProcessing { | |
10 = TYPO3\CMS\Frontend\DataProcessing\SiteProcessor | |
10 { | |
as = site | |
} | |
20 = TYPO3\CMS\Frontend\DataProcessing\MenuProcessor | |
20 { | |
special = language | |
special.value = {$AVAILABLELANGUAGEIDS} | |
as = menuLanguage | |
} | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correct. I made one more adjustment, because there was still a bug in the code.