From ffd2f44530ee4f3bed85738a6de640d77a3155d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Thu, 3 Aug 2023 12:34:32 +0200 Subject: [PATCH] Feat: Increase number of displayed teasers Trello #1095 --- .../ext/ep_products/Classes/Controller/ConceptController.php | 2 +- .../ext/ep_products/Classes/Controller/CountryController.php | 2 +- .../ext/ep_products/Classes/Controller/HotelController.php | 2 +- .../ext/ep_products/Classes/Controller/ProductController.php | 2 +- .../ext/ep_products/Classes/Controller/RegionController.php | 2 +- .../ext/ep_theme/Resources/Private/Partials/Product/Teaser.html | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/ConceptController.php b/public/typo3conf/ext/ep_products/Classes/Controller/ConceptController.php index ad640849..82a37967 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/ConceptController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/ConceptController.php @@ -81,7 +81,7 @@ class ConceptController extends ActionController $filterSettings = ['conceptUids' => $teaserConceptUids]; $excludedConceptUids = GeneralUtility::trimExplode(',', $this->settings['excludedConceptUids'], true); - $limit = $this->settings['showMoreLink'] ? 4 : 0; + $limit = $this->settings['showMoreLink'] ? 6 : 0; $teasers = $this->productDataService->getTeasergroup($filterSettings, $excludedConceptUids, $limit); $pages = $this->pageRepository->findPagesByPid((int)$this->settings['conceptsPageUid']); $data = $this->configurationManager->getContentObject()->data; diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/CountryController.php b/public/typo3conf/ext/ep_products/Classes/Controller/CountryController.php index f2512c62..89cf743b 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/CountryController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/CountryController.php @@ -69,7 +69,7 @@ class CountryController extends ActionController 'countryUids' => [ $countryUid ], ]; $excludedConceptUids = GeneralUtility::trimExplode(',', $this->settings['excludedConceptUids'], true); - $limit = $this->settings['showMoreLink'] ? 4 : 0; + $limit = $this->settings['showMoreLink'] ? 6 : 0; $teasers = $this->productDataService->getTeasergroup($filterSettings, $excludedConceptUids, $limit); $this->view->assign('teasers', $teasers); $this->view->assign('country', $country); diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/HotelController.php b/public/typo3conf/ext/ep_products/Classes/Controller/HotelController.php index fadca31f..ce1d22b6 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/HotelController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/HotelController.php @@ -94,7 +94,7 @@ class HotelController extends ActionController 'hotelUid' => $hotelUid, ]; $excludedConceptUids = GeneralUtility::trimExplode(',', $this->settings['excludedConceptUids'], true); - $limit = $this->settings['showMoreLink'] ? 4 : 0; + $limit = $this->settings['hideMoreLink'] ? 0 : 6; $teasers = $this->productDataService->getTeasergroup($filterSettings, $excludedConceptUids, $limit); $this->view->assign('hotel', $hotel); $this->view->assign('teasers', $teasers); diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php b/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php index 7cadff03..91a0e133 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/ProductController.php @@ -233,7 +233,7 @@ class ProductController extends ActionController $filterSettings = $this->filterService->getFiltersettingsFromSettings($this->settings); $dateAuto = !$this->settings['dateFrom'] && !$this->settings['dateTo']; $excludedConceptUids = GeneralUtility::trimExplode(',', $this->settings['excludedConceptUids'], true); - $limit = $this->settings['showMoreLink'] ? 4 : 0; + $limit = $this->settings['hideMoreLink'] ? 0 : 6; $teasers = $this->productDataService->getTeasergroup($filterSettings, $excludedConceptUids, $limit); $dateFrom = $this->settings['dateFrom'] ? date('Y-m-d', $this->settings['dateFrom']) : null; $dateTo = $this->settings['dateTo'] ? date('Y-m-d', $this->settings['dateTo']) : null; diff --git a/public/typo3conf/ext/ep_products/Classes/Controller/RegionController.php b/public/typo3conf/ext/ep_products/Classes/Controller/RegionController.php index 453737bf..e6055079 100644 --- a/public/typo3conf/ext/ep_products/Classes/Controller/RegionController.php +++ b/public/typo3conf/ext/ep_products/Classes/Controller/RegionController.php @@ -74,7 +74,7 @@ class RegionController extends ActionController 'regionUids' => $teaserRegionUids, ]; $excludedConceptUids = GeneralUtility::trimExplode(',', $this->settings['excludedConceptUids'], true); - $limit = $this->settings['showMoreLink'] ? 4 : 0; + $limit = $this->settings['hideMoreLink'] ? 0 : 6; $teasers = $this->productDataService->getTeasergroup($filterSettings, $excludedConceptUids, $limit); $this->view->assign('teasers', $teasers); $this->view->assign('region', $region); diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html index 7bf2cd10..82756f14 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Partials/Product/Teaser.html @@ -4,7 +4,7 @@ xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"> -
+