Skip to content

Instantly share code, notes, and snippets.

@radmiraal
Created September 24, 2014 08:42
Show Gist options
  • Save radmiraal/191273ae0ba71878bf57 to your computer and use it in GitHub Desktop.
Save radmiraal/191273ae0ba71878bf57 to your computer and use it in GitHub Desktop.
{namespace neos=TYPO3\Neos\ViewHelpers}
{namespace ts=TYPO3\TypoScript\ViewHelpers}
<div{attributes -> f:format.raw()}>
{neos:contentElement.editable(property:'title', tag: 'h1')}
<ts:render path="content" />
</div>
prototype(TYPO3.Neos:PrimaryContent).FoobarBookingEvent {
condition = ${q(node).is('[instanceof Foobar.Booking:EventTemplate]')}
type = 'Foobar.Booking:EventTemplate'
@position = 'start'
}
prototype(Foobar.Booking:EventTemplate) < prototype(TYPO3.TypoScript:Template) {
templatePath = 'resource://Foobar.Booking/Private/Templates/DocumentTypes/Event.html'
node = ${documentNode}
title = ${q(node).property('title')}
content = TYPO3.Neos:ContentCollection {
nodePath = 'main'
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment