Skip to content

Instantly share code, notes, and snippets.

@aertmann
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aertmann/66f371da72edc24ec4ee to your computer and use it in GitHub Desktop.
Save aertmann/66f371da72edc24ec4ee to your computer and use it in GitHub Desktop.
# If object
page.htmlTag.attributes.style = TYPO3.TypoScript:If {
condition = ${q(node).property('image')}
then = TYPO3.TypoScript:ResourceUri {
resource = ${q(node).property('image').resource}
@process.wrap = ${"background-image: url('" + value + "');"}
}
}
# @if meta property
page.htmlTag.attributes.style = TYPO3.TypoScript:ResourceUri {
resource = ${q(node).property('image').resource}
@process.wrap = ${"background-image: url('" + value + "');"}
@if = ${q(node).property('image')
}
# Render result directly in Matcher object
page.htmlTag.attributes.style = TYPO3.TypoScript:Case {
backgroundImageExists {
condition = ${q(node).property('image')}
result = TYPO3.TypoScript:ResourceUri {
resource = ${q(node).property('image').resource}
@process.wrap = ${"background-image: url('" + value + "');"}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment