Skip to content

Instantly share code, notes, and snippets.

@ogrosko
Created November 16, 2017 13:50
Show Gist options
  • Select an option

  • Save ogrosko/3d8d29309c69d9ffc998f66d020c856f to your computer and use it in GitHub Desktop.

Select an option

Save ogrosko/3d8d29309c69d9ffc998f66d020c856f to your computer and use it in GitHub Desktop.
bodyTagCObject class with template name
bodyTagCObject = COA
bodyTagCObject {
10 = TEXT
10 {
data = page:uid
stdWrap.noTrimWrap = |page-uid-| |
}
20 = TEXT
20 {
if.isTrue.data = page:tx_fed_page_controller_action
data = page:tx_fed_page_controller_action
split {
token = >
returnKey = 1
}
case = lower
}
20.wrap = tmpl-|
30 = TEXT
30 {
if.isFalse.data = page:tx_fed_page_controller_action
data = levelfield:-2, tx_fed_page_controller_action, slide
split {
token = >
returnKey = 1
}
case = lower
}
30.wrap = tmpl-|
wrap = <body class="|">
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment