mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-22 23:56:10 +01:00
Daniel Siepmann
8201782b6f
Do not check for models, but actual file. They might be missing, e.g. cause not downloaded from production into dev environment. The new checks ensure the page will not break with an exception, but show default images.
37 lines
1.6 KiB
HTML
37 lines
1.6 KiB
HTML
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
|
<f:layout name="Default" />
|
|
<f:section name="content">
|
|
<div class="row">
|
|
<div class="col-6">
|
|
<f:if condition="{event.images.0}">
|
|
<f:then>
|
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
|
<f:image image="{event.images.0}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
|
</f:link.action>
|
|
</f:then>
|
|
<f:else>
|
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
|
</f:link.action>
|
|
</f:else>
|
|
</f:if>
|
|
</div>
|
|
<div class="col-6">
|
|
<h2>{event.title}</h2>
|
|
<h3>{event.teaser}</h3>
|
|
<f:format.html>{event.details}</f:format.html>
|
|
<p>{event.price_info}</p>
|
|
|
|
<div class="row">
|
|
<div class="col-4">
|
|
<p>Veranstaltungsort:<br>
|
|
{event.street}<br>
|
|
{event.zip} {event.city}<br>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</f:section>
|
|
</html>
|