Skip to content

Instantly share code, notes, and snippets.

@robertlemke
Last active December 24, 2015 01:49
Show Gist options
  • Save robertlemke/6725919 to your computer and use it in GitHub Desktop.
Save robertlemke/6725919 to your computer and use it in GitHub Desktop.
#
# Regular template
#
page.body {
content.side = Template
content.side.templatePath = "… Main.html"
}
#
# Alternative template
#
pageAlternative < page {
body.content.side.templatePath = "… Alternative.html"
}
#
# Define a new "case" which becomes active on a certain condition (for example if the current node is of a certain type).
# If that case matches, render the specified TypoScript object (instead of "page")
#
root.pageAlternativeCase {
condition = ${q(node).is('[instanceof Acme:SpecialType]')}
renderPath = '/pageAlternative'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment