Skip to content

Instantly share code, notes, and snippets.

@schliflo
Created November 9, 2016 09:40
Show Gist options
  • Save schliflo/997f7ad352840058ed8c2b5052a2fcc6 to your computer and use it in GitHub Desktop.
Save schliflo/997f7ad352840058ed8c2b5052a2fcc6 to your computer and use it in GitHub Desktop.
complex conditions in typoscript2 or fusion in NEOS
attributes.class = TYPO3.TypoScript:RawArray {
default = 'btn'
large = ${q(node).property('large') ? 'btn-lg': null}
block = ${q(node).property('block') ? 'btn-block': null}
color = ${'btn-' + q(node).property('color')}
color.@if.condition = ${q(node).property('color')}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment