Created
March 14, 2023 14:45
-
-
Save joekolade/e2b5d7f5db4b84e9b6d0687dd1d1c3f3 to your computer and use it in GitHub Desktop.
[BodyTag] Manipulate body tag in typoscript
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
| page { | |
| bodyTagCObject = CASE | |
| bodyTagCObject { | |
| key.field = layout | |
| default = TEXT | |
| default.value = <body id="id_{field:alias//field:uid}" class="{$languageKey}"> | |
| default.insertData = 1 | |
| 0 < .default | |
| 1 = TEXT | |
| 1.noTrimWrap = |<body id="id_{field:alias//field:uid}" class="{$languageKey} |">| | |
| 1.value = fullwidth | |
| 1.insertData = 1 | |
| } | |
| # bodyTagCObject = TEXT | |
| # bodyTagCObject.value = <body id="id_{field:alias//field:uid}" class="{$languageKey}"> | |
| # bodyTagCObject.insertData = 1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment