Skip to content

Instantly share code, notes, and snippets.

@nezaniel
Created April 15, 2014 07:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nezaniel/10709466 to your computer and use it in GitHub Desktop.
Save nezaniel/10709466 to your computer and use it in GitHub Desktop.
prototype(CORE4.EventBase:EventList) >
prototype(CORE4.EventBase:EventList) < prototype(TYPO3.Neos:Content) {
templatePath = 'resource://CORE4.EventBase/Private/Templates/NodeTypes/EventList.html'
startNode = ${q(node).property('restrictToDocument') ? q(documentNode) : q(site)}
events = ${this.startNode.find('[instanceof CORE4.EventBase:Event]').future().orderEventsByDate('asc')}
hasEvents = ${this.events.count() > 0}
}
prototype(CORE4.EventBase:UpcomingEvent) >
prototype(CORE4.EventBase:UpcomingEvent) < prototype(TYPO3.Neos:Content) {
templatePath = 'resource://CORE4.EventBase/Private/Templates/NodeTypes/UpcomingEvent.html'
startNode = ${q(node).property('restrictToDocument') ? q(documentNode) : q(site)}
events = ${this.startNode.find('[instanceof CORE4.EventBase:Event]').future().orderEventsByDate('asc')}
hasEvents = ${this.events.count() > 0}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment