Skip to content

Instantly share code, notes, and snippets.

@nezaniel
Created April 15, 2014 07:01
Show Gist options
  • Save nezaniel/10708937 to your computer and use it in GitHub Desktop.
Save nezaniel/10708937 to your computer and use it in GitHub Desktop.
'CORE4.EventBase:Schema.Event':
abstract: TRUE
ui:
icon: 'icon-calendar'
inspector:
groups:
event:
label: 'Event'
position: 50
visibility:
position: 150
properties:
startDate:
type: date
ui:
label: 'Start date'
reloadIfChanged: TRUE
inspector:
group: 'event'
position: 10
validation:
'TYPO3.Neos/Validation/DateTimeValidator': []
'TYPO3.Neos/Validation/NotEmptyValidator': []
endDate:
type: date
ui:
label: 'End date'
reloadIfChanged: TRUE
inspector:
group: 'event'
position: 20
validation:
'TYPO3.Neos/Validation/DateTimeValidator': []
doorTime:
type: string
ui:
label: 'Door time'
inspector:
group: 'event'
position: 30
duration:
type: string
ui:
label: 'Duration'
inspector:
group: 'event'
position: 40
eventStatus:
type: string
ui:
label: 'Event status'
reloadIfChanged: TRUE
inspector:
group: 'event'
position: 50
editor: 'TYPO3.Neos/Inspector/Editors/SelectBoxEditor'
editorOptions:
placeholder: 'Select one'
default: 'EventScheduled'
values:
'EventScheduled':
label: 'Scheduled'
'EventRescheduled':
label: 'Rescheduled'
'EventPostponed':
label: 'Postponed'
'EventCancelled':
label: 'Cancelled'
offers:
type: reference
ui:
label: 'Offers'
inspector:
group: 'event'
position: 60
editorOptions:
nodeTypes:
- 'TYPO3.Neos:Document'
'CORE4.EventBase:SuperEvent':
superTypes:
- 'TYPO3.Neos:Document'
- 'CORE4.EventBase:Schema.Event'
ui:
label: 'Super Event'
group: 'event'
childNodes:
aggregatedSubEvents:
type: 'TYPO3.Neos:ContentCollection'
'CORE4.EventBase:Event':
superTypes:
- 'TYPO3.Neos:Document'
- 'CORE4.EventBase:Schema.Event'
ui:
label: 'Event'
group: 'event'
childNodes:
images:
type: 'TYPO3.Neos:ContentCollection'
description:
type: 'TYPO3.Neos:ContentCollection'
properties:
annotation:
type: string
ui:
label: 'Annotation'
reloadIfChanged: TRUE
inspector:
group: 'event'
position: 23
subheading:
type: string
defaultValue: '<h3>Enter subheading here</h3>'
ui:
label: 'Subheading'
inlineEditable: TRUE
inspector:
group: 'event'
position: 25
aloha:
format: ['h2', 'h3', 'h4', 'h5', 'h6', 'p', 'removeFormat']
teaser:
type: string
ui:
label: 'Teaser'
inspector:
group: 'event'
position: 27
aloha:
format: ['p']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment