Commit 05357926 authored by Laurent Cherpit's avatar Laurent Cherpit

BUGFIX: Remove unwanted prefix for venue

parent b17e09c6
<f:if condition="{dateFormatType} == 'sameDay'">
<f:then>
<em><f:format.date format="F j Y" >{startDate}</f:format.date> at {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> at {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> at {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> at {venue}</em>
</f:else>
</f:if>
</f:else>
</f:if>
</f:else>
</f:if>
<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
......@@ -4,6 +4,8 @@ prototype(Ttree.News:EventShort) < prototype(Ttree.News:Event) {
title = ${String.stripTags(q(node).property('title'))}
venue = ${q(node).property('venue')}
venue.@process.prefix = ${String.isBlank(value) ? null : 'at ' + value}
startDate = ${q(node).property('startDate')}
endDate = ${q(node).property('endDate')}
@context.startDate = ${this.startDate}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment