Last active
September 20, 2022 21:32
-
-
Save Starraider/2d444ecacc597eb44ccc2ee256ae359f to your computer and use it in GitHub Desktop.
New TYPO3-Conditions #TypoScript
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
Application Context: | |
[applicationContext == "Development"] | |
[GLOBAL] | |
... | |
Specific Page: | |
[page["uid"] == 2] | |
... | |
[GLOBAL] | |
TypoScript Constants: | |
[{$foo.bar} == 4711] | |
or if its a string: | |
["{$foo.bar}" == "4711"] | |
Tree-Level: | |
[tree.level == 0] | |
Tree-Rootline: | |
[tree.rootLine[0]["uid"] == 1] | |
Logged in feUsers: | |
[frontend.user.isLoggedIn] | |
UserGroup: | |
[usergroup("*")] | |
[usergroup("12,15,18")] | |
Language: | |
[siteLanguage("locale") == "de_CH"] | |
[siteLanguage("title") == "Italy"] | |
Typo3 Version: | |
[typo3.branch == "9.5"] | |
Like: | |
[like("fooBarBaz", "*Bar*")] | |
Travers: | |
[traverse(request.getQueryParams(), 'tx_news_pi1/news') > 0] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment