From 890dcd4b351c8dba5300022b21d3e582b5cdf36a Mon Sep 17 00:00:00 2001 From: Dirk Date: Thu, 7 Nov 2019 14:16:28 +0100 Subject: [PATCH] Make default image configurable --- .../Command/DestinationDataImportCommand.php | 2 +- Configuration/TypoScript/constants.typoscript | 2 + Configuration/TypoScript/setup.typoscript | 1 + .../Private/Partials/Date/ListDefault.html | 4 +- .../Private/Partials/Date/ListTable.html | 4 +- Resources/Private/Templates/Date/List.html | 28 ++++---- Resources/Private/Templates/Date/Search.html | 2 +- Resources/Private/Templates/Date/Show.html | 68 +++++++++--------- Resources/Private/Templates/Date/Teaser.html | 4 +- Resources/Private/Templates/Event/List.html | 58 +++++++-------- Resources/Private/Templates/Event/Search.html | 4 +- Resources/Private/Templates/Event/Show.html | 64 +++++++++-------- Resources/Private/Templates/Event/Teaser.html | 4 +- Resources/Public/Images/default.jpg | Bin 0 -> 10345 bytes 14 files changed, 131 insertions(+), 114 deletions(-) create mode 100644 Resources/Public/Images/default.jpg diff --git a/Classes/Command/DestinationDataImportCommand.php b/Classes/Command/DestinationDataImportCommand.php index dd90041..af9f75b 100644 --- a/Classes/Command/DestinationDataImportCommand.php +++ b/Classes/Command/DestinationDataImportCommand.php @@ -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, diff --git a/Configuration/TypoScript/constants.typoscript b/Configuration/TypoScript/constants.typoscript index 1aa0668..6ae8951 100644 --- a/Configuration/TypoScript/constants.typoscript +++ b/Configuration/TypoScript/constants.typoscript @@ -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/ diff --git a/Configuration/TypoScript/setup.typoscript b/Configuration/TypoScript/setup.typoscript index 0f88a79..c3d1660 100644 --- a/Configuration/TypoScript/setup.typoscript +++ b/Configuration/TypoScript/setup.typoscript @@ -36,6 +36,7 @@ plugin.tx_events { defaulDetailEventsPid = defaultDetailDatesPid = + defaultImagePath = {$plugin.tx_events.settings.defaultImagePath} paginate { # can be overriden by plugin diff --git a/Resources/Private/Partials/Date/ListDefault.html b/Resources/Private/Partials/Date/ListDefault.html index 57e8b16..4bcb31f 100644 --- a/Resources/Private/Partials/Date/ListDefault.html +++ b/Resources/Private/Partials/Date/ListDefault.html @@ -10,7 +10,9 @@ - Dummy + + Dummy + diff --git a/Resources/Private/Partials/Date/ListTable.html b/Resources/Private/Partials/Date/ListTable.html index 2099e60..3a5d01c 100644 --- a/Resources/Private/Partials/Date/ListTable.html +++ b/Resources/Private/Partials/Date/ListTable.html @@ -28,7 +28,9 @@ - Dummy + + Dummy + diff --git a/Resources/Private/Templates/Date/List.html b/Resources/Private/Templates/Date/List.html index d3f7e43..f447317 100644 --- a/Resources/Private/Templates/Date/List.html +++ b/Resources/Private/Templates/Date/List.html @@ -1,16 +1,16 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Resources/Private/Templates/Date/Search.html b/Resources/Private/Templates/Date/Search.html index c2360a0..cd26875 100644 --- a/Resources/Private/Templates/Date/Search.html +++ b/Resources/Private/Templates/Date/Search.html @@ -40,7 +40,7 @@ GLOBAL EVENT ID: {date.event.globalId} - Dummy + Dummy diff --git a/Resources/Private/Templates/Date/Show.html b/Resources/Private/Templates/Date/Show.html index b037174..bb388da 100644 --- a/Resources/Private/Templates/Date/Show.html +++ b/Resources/Private/Templates/Date/Show.html @@ -1,38 +1,38 @@ - - -
-
- - - - - - Dummy - - -
-
-

- {date.start} - {date.start} - {date.start} Uhr -

-

{date.event.title}

-

{date.event.teaser}

- {date.event.details} -

{event.price_info}

+ + +
+
+ + + + + + Dummy + + +
+
+

+ {date.start} + {date.start} + {date.start} Uhr +

+

{date.event.title}

+

{date.event.teaser}

+ {date.event.details} +

{event.price_info}

-
-
-

Veranstaltungsort:
- {date.event.street}
- {date.event.zip} {date.event.city}
-

-
-
+
+
+

Veranstaltungsort:
+ {date.event.street}
+ {date.event.zip} {date.event.city}
+

+
+
-
-
-
+
+
+
\ No newline at end of file diff --git a/Resources/Private/Templates/Date/Teaser.html b/Resources/Private/Templates/Date/Teaser.html index 9061dae..8d142ad 100644 --- a/Resources/Private/Templates/Date/Teaser.html +++ b/Resources/Private/Templates/Date/Teaser.html @@ -17,7 +17,9 @@ - Dummy + + Dummy + diff --git a/Resources/Private/Templates/Event/List.html b/Resources/Private/Templates/Event/List.html index 3cfb726..b8235aa 100644 --- a/Resources/Private/Templates/Event/List.html +++ b/Resources/Private/Templates/Event/List.html @@ -1,31 +1,33 @@ - + - -
- -
- -
-
- {event.region.title} -

{event.title}

-

{event.teaser}

-
-
-
-
-
-
+ +
+ +
+ +
+
+ {event.region.title} +

{event.title}

+

{event.teaser}

+
+
+
+
+
+
\ No newline at end of file diff --git a/Resources/Private/Templates/Event/Search.html b/Resources/Private/Templates/Event/Search.html index 73dd4af..2e5cd72 100644 --- a/Resources/Private/Templates/Event/Search.html +++ b/Resources/Private/Templates/Event/Search.html @@ -11,7 +11,9 @@ - Dummy + + Dummy + diff --git a/Resources/Private/Templates/Event/Show.html b/Resources/Private/Templates/Event/Show.html index 4937010..49d418b 100644 --- a/Resources/Private/Templates/Event/Show.html +++ b/Resources/Private/Templates/Event/Show.html @@ -1,35 +1,37 @@ - - -
-
- - - - - - - - Dummy - - -
-
-

{event.title}

-

{event.teaser}

- {event.details} -

{event.price_info}

+ + +
+
+ + + + + + + + + Dummy + + + +
+
+

{event.title}

+

{event.teaser}

+ {event.details} +

{event.price_info}

-
-
-

Veranstaltungsort:
- {event.street}
- {event.zip} {event.city}
-

-
-
+
+
+

Veranstaltungsort:
+ {event.street}
+ {event.zip} {event.city}
+

+
+
-
-
-
+
+
+
\ No newline at end of file diff --git a/Resources/Private/Templates/Event/Teaser.html b/Resources/Private/Templates/Event/Teaser.html index 3840aa4..56ace96 100644 --- a/Resources/Private/Templates/Event/Teaser.html +++ b/Resources/Private/Templates/Event/Teaser.html @@ -13,7 +13,9 @@ - Dummy + + Dummy + diff --git a/Resources/Public/Images/default.jpg b/Resources/Public/Images/default.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1d216a4a67c99af218f7c380d055db181748e057 GIT binary patch literal 10345 zcmeH`OK;Oa5XaXfO+uQsvC>LaTM5g(03vpr#7S&5RK;mTgp8_E39hcaZLHJ}*$#1g z;=m{3%7GsE5Ij!3BlrkrZSttv26082l`PGUXZ|z$+u7(#bcNRUL-PcoUhgr=q1lRl zAi6Wu2j_@FY2w~ND7s1s{UC55j#Rn#&7Zg-1KPp{wZw95BcD)U?~| zuaBQt#x&aOYf-JJu7dmK^9v8Zx_Eh{Ukr4~V0WJ~JE0s}u7v}Q39U2Rm%}!jh|9!| z-8{=AA;F-{?!{G^H|hbSI38w1u2I&7y2vyoPH5EXlJtbBR)iK`Y4Jj>EHvbLMXpwv z@nT6e&p43}JKb?DvTL*BLyblwZdBtO@01rLN#ZM2zFIAlh_Zif2U=LR{q2cD2m88b zx`FA~OsuFKJHw#Ol1~2|!E&dvce1(`sH%StwX7IGBI^f-c-HTo!v4{@i}^$BJ3~*$ zBz!wgc4fuGTHts`j&nAlc+htO$L~8XqbM;oiFv4Mx@pJGM@g2d%01f;G+W2LPMak< zoM{?ztNv_X>9(3(so4^QeM#!Jx?Qm*ih@#8nw`B#ZpYDw7Pf;)t})AP&CQJm!g5LF z4))Bq*ywtW#Uuxp&H25EbM?l##{6Cyb8~sp3?E?E#@+r++rc0U(DwV#X_=*h2@pv%5tGp zT3s!bwl+66w;oIvmCa_C3QOz7;`+uKy|yv^@vla7iRfI4JnIxiqkA-!qN(UJdVwfv z_Wlzqd&`50H)9Ze%M*P=g%m}UQ#9H|AKu+ig)I;O0zd!=00AHX1b_e#00KY&2mk>f q00e*l5C8%|00;m9AOHk_01yBIKmZ5;0U!VbfB+Bx0{;(z=<9F8jwUAn literal 0 HcmV?d00001