...
 
Commits (3)
......@@ -84,7 +84,6 @@
group: news
publicationDate:
type: DateTime
defaultValue: now
ui:
label: 'Publication Date'
reloadIfChanged: true
......@@ -212,7 +211,6 @@
group: event
startDate:
type: DateTime
defaultValue: now
ui:
label: 'Event Start Date'
reloadIfChanged: true
......@@ -226,7 +224,6 @@
Neos.Neos/Validation/NotEmptyValidator: { }
endDate:
type: DateTime
defaultValue: now
ui:
label: 'Event End Date'
reloadIfChanged: true
......
......@@ -21,6 +21,8 @@ prototype(Ttree.News:Event) < prototype(Ttree.News:AbstractNews) {
nodePath = 'main'
}
@process.contentElementWrapping >
@cache {
mode = 'cached'
entryIdentifier {
......
{namespace ts=Neos\Fusion\ViewHelpers}
{namespace neos=Neos\Neos\ViewHelpers}
<div{attributes -> f:format.raw()}>
<div>
<div style="margin-bottom: 1em; border-bottom: 1px solid #CCC;">
<f:render partial="DatePeriod" arguments="{dateFormatType: dateFormatType, startDate: startDate, endDate: endDate, venue: venue}" />
</div>
{main -> f:format.raw()}
......
<f:if condition="{startDate}">
<f:if condition="{dateFormatType} == 'sameDay'">
<f:then>
<em><f:format.date format="F j Y" >{startDate}</f:format.date> {venue}</em>
</f:then>
<f:else>
<f:if condition="{dateFormatType} == 'sameMonth'">
<f:then>
<em>from <f:format.date format="j" >{startDate}</f:format.date> to <f:format.date format="F j Y">{endDate}</f:format.date> {venue}</em>
</f:then>
<f:else>
<f:if condition="{dateFormatType} == 'sameYear'">
<f:then>
<em>from <f:format.date format="F j" >{startDate}</f:format.date> to <f:format.date format="F j Y">{endDate}</f:format.date> {venue}</em>
</f:then>
<f:else>
<em>from <f:format.date format="F j Y" >{startDate}</f:format.date> to <f:format.date format="F j Y">{endDate}</f:format.date> {venue}</em>
</f:else>
</f:if>
</f:else>
</f:if>
</f:else>
</f:if>
</f:if>
\ No newline at end of file
<f:if condition="{dateFormatType} == 'sameDay'">
<f:then>
<f:format.date format="F j, Y" >{startDate}</f:format.date> {venue}
</f:then>
<f:else>
<f:if condition="{dateFormatType} == 'sameMonth'">
<f:then>
from <f:format.date format="F j" >{startDate}</f:format.date>-<f:format.date format="j, Y">{endDate}</f:format.date> {venue}
</f:then>
<f:else>
<f:if condition="{dateFormatType} == 'sameYear'">
<f:then>
from <f:format.date format="F j" >{startDate}</f:format.date> to <f:format.date format="F j, Y">{endDate}</f:format.date> {venue}
</f:then>
<f:else>
from <f:format.date format="F j, Y" >{startDate}</f:format.date> to <f:format.date format="F j, Y">{endDate}</f:format.date> {venue}
</f:else>
</f:if>
</f:else>
</f:if>
</f:else>
</f:if>
</f:if>