mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-22 09:16:20 +01:00
Make default image configurable
This commit is contained in:
parent
b632a32fe7
commit
890dcd4b35
14 changed files with 131 additions and 114 deletions
|
@ -29,7 +29,7 @@ class DestinationDataImportCommand extends Command {
|
||||||
'region-uid',
|
'region-uid',
|
||||||
InputArgument::OPTIONAL,
|
InputArgument::OPTIONAL,
|
||||||
'What is the region uid?',
|
'What is the region uid?',
|
||||||
'1'
|
'6'
|
||||||
);
|
);
|
||||||
$this->addArgument('rest-experience',
|
$this->addArgument('rest-experience',
|
||||||
InputArgument::OPTIONAL,
|
InputArgument::OPTIONAL,
|
||||||
|
|
|
@ -13,6 +13,8 @@ plugin.tx_events {
|
||||||
storagePid =
|
storagePid =
|
||||||
}
|
}
|
||||||
settings {
|
settings {
|
||||||
|
# cat=plugin.tx_events//a; type=string; label=Default Image
|
||||||
|
defaultImagePath = typo3conf/ext/events/Resources/Public/Images/default.jpg
|
||||||
destinationData {
|
destinationData {
|
||||||
# cat=plugin.tx_events//a; type=string; label=Rest Url
|
# cat=plugin.tx_events//a; type=string; label=Rest Url
|
||||||
restUrl = http://meta.et4.de/rest.ashx/search/
|
restUrl = http://meta.et4.de/rest.ashx/search/
|
||||||
|
|
|
@ -36,6 +36,7 @@ plugin.tx_events {
|
||||||
|
|
||||||
defaulDetailEventsPid =
|
defaulDetailEventsPid =
|
||||||
defaultDetailDatesPid =
|
defaultDetailDatesPid =
|
||||||
|
defaultImagePath = {$plugin.tx_events.settings.defaultImagePath}
|
||||||
|
|
||||||
paginate {
|
paginate {
|
||||||
# can be overriden by plugin
|
# can be overriden by plugin
|
||||||
|
|
|
@ -10,7 +10,9 @@
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="480" height="320" class="img-fluid img-thumbnail"/>
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}">
|
||||||
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
|
</f:link.action>
|
||||||
</f:else>
|
</f:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -28,7 +28,9 @@
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="320" height="320" class="img-fluid img-thumbnail"/>
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}">
|
||||||
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
|
</f:link.action>
|
||||||
</f:else>
|
</f:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,16 +1,16 @@
|
||||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||||
<f:layout name="Default" />
|
<f:layout name="Default" />
|
||||||
<f:section name="content">
|
<f:section name="content">
|
||||||
<f:switch expression="{settings.template}">
|
<f:switch expression="{settings.template}">
|
||||||
<f:case value="table">
|
<f:case value="table">
|
||||||
<f:render partial="Date/ListTable" arguments="{dates:dates}" />
|
<f:render partial="Date/ListTable" arguments="{dates:dates}" />
|
||||||
</f:case>
|
</f:case>
|
||||||
<f:case value="grid">
|
<f:case value="grid">
|
||||||
<f:render partial="Date/ListDefault" arguments="{dates:dates}" />
|
<f:render partial="Date/ListDefault" arguments="{dates:dates}" />
|
||||||
</f:case>
|
</f:case>
|
||||||
<f:defaultCase>
|
<f:defaultCase>
|
||||||
<f:render partial="Date/ListDefault" arguments="{dates:dates}" />
|
<f:render partial="Date/ListDefault" arguments="{dates:dates}" />
|
||||||
</f:defaultCase>
|
</f:defaultCase>
|
||||||
</f:switch>
|
</f:switch>
|
||||||
</f:section>
|
</f:section>
|
||||||
</html>
|
</html>
|
|
@ -40,7 +40,7 @@ GLOBAL EVENT ID: {date.event.globalId}
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}">
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Date" arguments="{date: date}">
|
||||||
<img src="https://dummyimage.com/400x280/ddd/ccc" alt="Dummy" width="400" height="280" class="img-fluid img-thumbnail"/>
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:else>
|
</f:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
|
|
|
@ -1,38 +1,38 @@
|
||||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||||
<f:layout name="Default" />
|
<f:layout name="Default" />
|
||||||
<f:section name="content">
|
<f:section name="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<f:if condition="{date.event.images}">
|
<f:if condition="{date.event.images}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<f:image src="{date.event.images.originalResource.originalFile.uid}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
<f:image src="{date.event.images.originalResource.originalFile.uid}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="480" height="320" class="img-fluid img-thumbnail"/>
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
</f:else>
|
</f:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<h4>
|
<h4>
|
||||||
<f:format.date format="%a">{date.start}</f:format.date>
|
<f:format.date format="%a">{date.start}</f:format.date>
|
||||||
<f:format.date format="d.m.">{date.start}</f:format.date>
|
<f:format.date format="d.m.">{date.start}</f:format.date>
|
||||||
<f:format.date format="H:i">{date.start}</f:format.date> Uhr
|
<f:format.date format="H:i">{date.start}</f:format.date> Uhr
|
||||||
</h4>
|
</h4>
|
||||||
<h2>{date.event.title}</h2>
|
<h2>{date.event.title}</h2>
|
||||||
<h3>{date.event.teaser}</h3>
|
<h3>{date.event.teaser}</h3>
|
||||||
<f:format.html>{date.event.details}</f:format.html>
|
<f:format.html>{date.event.details}</f:format.html>
|
||||||
<p>{event.price_info}</p>
|
<p>{event.price_info}</p>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<p>Veranstaltungsort:<br>
|
<p>Veranstaltungsort:<br>
|
||||||
{date.event.street}<br>
|
{date.event.street}<br>
|
||||||
{date.event.zip} {date.event.city}<br>
|
{date.event.zip} {date.event.city}<br>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</f:section>
|
</f:section>
|
||||||
</html>
|
</html>
|
|
@ -17,7 +17,9 @@
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="480" height="320" class="img-fluid img-thumbnail"/>
|
<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:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,31 +1,33 @@
|
||||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||||
<f:layout name="Default" />
|
<f:layout name="Default" />
|
||||||
|
|
||||||
<f:section name="content">
|
<f:section name="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<f:for each="{events}" as="event">
|
<f:for each="{events}" as="event">
|
||||||
<div class="col-sm-12 col-md-6 col-lg-4 col-xl-4">
|
<div class="col-sm-12 col-md-6 col-lg-4 col-xl-4">
|
||||||
<div class="menu-tile">
|
<div class="menu-tile">
|
||||||
<f:if condition="{event.images}">
|
<f:if condition="{event.images}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
||||||
<f:image src="{event.images.originalResource.originalFile.uid}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
<f:image src="{event.images.originalResource.originalFile.uid}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="480" height="320" class="img-fluid img-thumbnail"/>
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
||||||
</f:else>
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
</f:if>
|
</f:link.action>
|
||||||
</div>
|
</f:else>
|
||||||
<div class="caption">
|
</f:if>
|
||||||
<div class="caption-text mt-3">
|
</div>
|
||||||
{event.region.title}
|
<div class="caption">
|
||||||
<h4>{event.title}</h4>
|
<div class="caption-text mt-3">
|
||||||
<p>{event.teaser}</p>
|
{event.region.title}
|
||||||
</div>
|
<h4>{event.title}</h4>
|
||||||
</div>
|
<p>{event.teaser}</p>
|
||||||
</div>
|
</div>
|
||||||
</f:for>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</f:section>
|
</f:for>
|
||||||
|
</div>
|
||||||
|
</f:section>
|
||||||
</html>
|
</html>
|
|
@ -11,7 +11,9 @@
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="480" height="320" class="img-fluid img-thumbnail"/>
|
<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:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,35 +1,37 @@
|
||||||
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
|
||||||
<f:layout name="Default" />
|
<f:layout name="Default" />
|
||||||
<f:section name="content">
|
<f:section name="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<f:if condition="{event.images}">
|
<f:if condition="{event.images}">
|
||||||
<f:then>
|
<f:then>
|
||||||
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
||||||
<f:image src="{event.images.originalResource.originalFile.uid}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
<f:image src="{event.images.originalResource.originalFile.uid}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="480" height="320" class="img-fluid img-thumbnail"/>
|
<f:link.action pageUid="{settings.showPID}" action="show" controller="Event" arguments="{event: event}">
|
||||||
</f:else>
|
<img src="{settings.defaultImagePath}" alt="Dummy" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||||
</f:if>
|
</f:link.action>
|
||||||
</div>
|
</f:else>
|
||||||
<div class="col-6">
|
</f:if>
|
||||||
<h2>{event.title}</h2>
|
</div>
|
||||||
<h3>{event.teaser}</h3>
|
<div class="col-6">
|
||||||
<f:format.html>{event.details}</f:format.html>
|
<h2>{event.title}</h2>
|
||||||
<p>{event.price_info}</p>
|
<h3>{event.teaser}</h3>
|
||||||
|
<f:format.html>{event.details}</f:format.html>
|
||||||
|
<p>{event.price_info}</p>
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<p>Veranstaltungsort:<br>
|
<p>Veranstaltungsort:<br>
|
||||||
{event.street}<br>
|
{event.street}<br>
|
||||||
{event.zip} {event.city}<br>
|
{event.zip} {event.city}<br>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</f:section>
|
</f:section>
|
||||||
</html>
|
</html>
|
|
@ -13,7 +13,9 @@
|
||||||
</f:link.action>
|
</f:link.action>
|
||||||
</f:then>
|
</f:then>
|
||||||
<f:else>
|
<f:else>
|
||||||
<img src="https://dummyimage.com/480x320/ddd/ccc" alt="Dummy" width="480" height="320" class="img-fluid img-thumbnail"/>
|
<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:else>
|
||||||
</f:if>
|
</f:if>
|
||||||
</div>
|
</div>
|
||||||
|
|
BIN
Resources/Public/Images/default.jpg
Normal file
BIN
Resources/Public/Images/default.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
Loading…
Reference in a new issue