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',
|
||||
InputArgument::OPTIONAL,
|
||||
'What is the region uid?',
|
||||
'1'
|
||||
'6'
|
||||
);
|
||||
$this->addArgument('rest-experience',
|
||||
InputArgument::OPTIONAL,
|
||||
|
|
|
@ -13,6 +13,8 @@ plugin.tx_events {
|
|||
storagePid =
|
||||
}
|
||||
settings {
|
||||
# cat=plugin.tx_events//a; type=string; label=Default Image
|
||||
defaultImagePath = typo3conf/ext/events/Resources/Public/Images/default.jpg
|
||||
destinationData {
|
||||
# cat=plugin.tx_events//a; type=string; label=Rest Url
|
||||
restUrl = http://meta.et4.de/rest.ashx/search/
|
||||
|
|
|
@ -36,6 +36,7 @@ plugin.tx_events {
|
|||
|
||||
defaulDetailEventsPid =
|
||||
defaultDetailDatesPid =
|
||||
defaultImagePath = {$plugin.tx_events.settings.defaultImagePath}
|
||||
|
||||
paginate {
|
||||
# can be overriden by plugin
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
</f:link.action>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</div>
|
||||
|
|
|
@ -28,7 +28,9 @@
|
|||
</f:link.action>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</div>
|
||||
|
|
|
@ -40,7 +40,7 @@ GLOBAL EVENT ID: {date.event.globalId}
|
|||
</f:then>
|
||||
<f:else>
|
||||
<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:else>
|
||||
</f:if>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<f:image src="{date.event.images.originalResource.originalFile.uid}" alt="" width="480c" height="320c" class="img-fluid img-thumbnail"/>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</div>
|
||||
|
|
|
@ -17,7 +17,9 @@
|
|||
</f:link.action>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
</f:link.action>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</div>
|
||||
|
|
|
@ -11,7 +11,9 @@
|
|||
</f:link.action>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</div>
|
||||
|
|
|
@ -10,7 +10,9 @@
|
|||
</f:link.action>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</div>
|
||||
|
|
|
@ -13,7 +13,9 @@
|
|||
</f:link.action>
|
||||
</f:then>
|
||||
<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:if>
|
||||
</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