Skip to content

Instantly share code, notes, and snippets.

@Starraider
Last active September 20, 2022 21:32
Show Gist options
  • Save Starraider/2d444ecacc597eb44ccc2ee256ae359f to your computer and use it in GitHub Desktop.
Save Starraider/2d444ecacc597eb44ccc2ee256ae359f to your computer and use it in GitHub Desktop.
New TYPO3-Conditions #TypoScript
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