Skip to content

Instantly share code, notes, and snippets.

@joekolade
Created March 14, 2023 14:45
Show Gist options
  • Select an option

  • Save joekolade/e2b5d7f5db4b84e9b6d0687dd1d1c3f3 to your computer and use it in GitHub Desktop.

Select an option

Save joekolade/e2b5d7f5db4b84e9b6d0687dd1d1c3f3 to your computer and use it in GitHub Desktop.
[BodyTag] Manipulate body tag in typoscript
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