Skip to content

Instantly share code, notes, and snippets.

@jrenggli
Created July 8, 2016 07:51
Show Gist options
  • Save jrenggli/0d2f768c124f2a4a0b15df47c6ea812c to your computer and use it in GitHub Desktop.
Save jrenggli/0d2f768c124f2a4a0b15df47c6ea812c to your computer and use it in GitHub Desktop.
body tag definition for TYPO3. Supports backend_layouts and tx_fluidpages
page.bodyTagCObject = COA
page.bodyTagCObject {
wrap = <body|>
10 = COA
10 {
10 = TEXT
10 {
value = {$plugin.tx_fluidpages.settings.someCustomClassesDependingOnTypoScriptSettings}
insertData = 1
stdWrap.noTrimWrap = || |
}
# current layout
#20 = TEXT
#20 {
# value.data = levelfield:-1, backend_layout_next_level, slide
# value.override.field = backend_layout
# stdWrap.noTrimWrap = |layout| |
#}
# current tx_fluidpages layout
30 = TEXT
30 {
value.data = levelfield:-1, tx_fed_page_controller_action_sub, slide
value.override.field = tx_fed_page_controller_action
stdWrap.replacement {
10 {
search = Vender.MySite->
replace =
}
}
stdWrap.noTrimWrap = || |
}
50 = TEXT
50.value = lang{TSFE:sys_language_uid} type{TSFE:type} uid{TSFE:id}
50.insertData = 1
stdWrap.noTrimWrap = | class="|"|
}
20 = TEXT
20 {
value.field = uid
stdWrap.noTrimWrap = | data-uid="|"|
}
30 = HMENU
30 {
special = rootline
special.range = 0|-1
includeNotInMenu = 1
stdWrap.noTrimWrap = | data-rootline="|"|
1 = TMENU
1 {
noBlur = 1
NO = 1
NO {
wrapItemAndSub = |/ |*| |/ |*| |
linkWrap = |
ATagBeforeWrap = 0
doNotLinkIt = 1
stdWrap.htmlSpecialChars = 0
stdWrap.cObject = COA
stdWrap.cObject {
10 = TEXT
10 {
field = uid
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment