Last active
December 24, 2015 01:49
-
-
Save robertlemke/6725919 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… | |
# | |
# 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