Skip to content

Instantly share code, notes, and snippets.

@nezaniel
Last active August 29, 2015 13:59
Show Gist options
  • Save nezaniel/10961812 to your computer and use it in GitHub Desktop.
Save nezaniel/10961812 to your computer and use it in GitHub Desktop.
prototype(CORE4.EventBase:Event) >
prototype(CORE4.EventBase:Event) < prototype(TYPO3.Neos:Page) {
body {
templatePath = 'resource://CORE4.EventBase/Private/Templates/NodeTypes/Event.html'
sectionName = 'body'
content {
images = ContentCollection {
nodePath = 'images'
}
description = PrimaryContent {
nodePath = 'description'
}
}
title = ${q(node).property('title')}
subheading = ${q(node).property('subheading')}
}
}
prototype(CORE4.EventBase:SuperEvent) >
prototype(CORE4.EventBase:SuperEvent) < prototype(TYPO3.Neos:Page) {
body {
templatePath = 'resource://CORE4.EventBase/Private/Templates/NodeTypes/SuperEvent.html'
sectionName = 'body'
parts {
partnerList = CORE4.EventBase:PartnerList
}
content {
main = PrimaryContent {
nodePath = 'main'
}
}
subEvents = TYPO3.TypoScript:Collection {
collection = ${q(node).find('[instanceof CORE4.EventBase:Event]').orderEventsByDate('asc')}
itemName = 'node'
itemRenderer = TYPO3.TypoScript:Template {
templatePath = 'resource://CORE4.EventBase/Private/Templates/NodeTypes/Event/SuperEventItem.html'
node = ${node}
title = ${q(node).property('title')}
startDate = ${q(node).property('startDate')}
endDate = ${q(node).property('endDate')}
annotation = ${q(node).property('annotation')}
teaser = ${q(node).find('description').children().filter('[instanceof TYPO3.Neos.NodeTypes:Text]').get(0)}
teaserImage = ${q(node).find('images').children().get(0)}
doorTime = ${q(node).property('doorTime')}
bannerImage = ${q(node).property('bannerImage')}
eventStatus = ${q(node).property('eventStatus')}
offerAvailability = ${q(node).property('offerAvailability')}
offerSellers = ${q(node).property('offerSellers')}
superEvent = ${q(node).closest('[instanceof CORE4.EventBase:SuperEvent]').get(0)}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment