Skip to content

Instantly share code, notes, and snippets.

@kitsunet
Forked from nezaniel/Events.ts2
Last active August 29, 2015 14:00
Show Gist options
  • Save kitsunet/11169717 to your computer and use it in GitHub Desktop.
Save kitsunet/11169717 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 {
@override.superEvent = ${node}
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 = ${superEvent}
superEventDoorTime = ${q(superEvent).property('doorTime')}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment