diff --git a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Concept.php b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Concept.php index 5f553407..3eee78bd 100644 --- a/public/typo3conf/ext/ep_products/Classes/Domain/Model/Concept.php +++ b/public/typo3conf/ext/ep_products/Classes/Domain/Model/Concept.php @@ -90,6 +90,11 @@ class Concept extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements */ protected $headerImages; + /** + * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> + */ + protected $images; + /** * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EP\EpProducts\Domain\Model\Product> */ @@ -110,6 +115,7 @@ class Concept extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements $this->products = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $this->teaserImages = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); $this->headerImages = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); + $this->images = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage(); } /** @@ -326,6 +332,22 @@ class Concept extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity implements $this->headerImages = $headerImages; } + /** + * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage + */ + public function getImages() + { + return $this->images; + } + + /** + * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $images + */ + public function setImages($images) + { + $this->images = $images; + } + /** * @param \EP\EpProducts\Domain\Model\Product $product */ diff --git a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php index 9e6905a2..57204032 100644 --- a/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php +++ b/public/typo3conf/ext/ep_products/Configuration/TCA/tx_epproducts_domain_model_concept.php @@ -24,8 +24,8 @@ return [ ], 'types' => [ '1' => [ - 'showitem' => '--palette--;;top, --palette--;;naming, --palette--;;header, teaser, description, description_extended, - --div--;Bilder/Dateien, teaser_images, header_images', + 'showitem' => '--palette--;;top, --palette--;;naming, --palette--;;header, teaser, description, description_extended, + --div--;Bilder/Dateien, teaser_images, header_images, images', ], ], 'palettes' => [ @@ -310,6 +310,55 @@ return [ ], $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] ), + ], + 'images' => [ + 'exclude' => 0, + 'label' => 'Galeriebilder', + 'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig( + 'images', + [ + 'appearance' => [ + 'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference' + ], + 'overrideChildTca' => [ + 'types' => [ + \TYPO3\CMS\Core\Resource\File::FILETYPE_IMAGE => [ + 'showitem' => ' + --palette--;LLL:EXT:lang/locallang_tca.xlf:sys_file_reference.imageoverlayPalette;imageoverlayPalette, + --palette--;;filePalette', + ], + ], + 'columns' => [ + 'crop' => [ + 'config' => [ + 'cropVariants' => [ + 'default' => [ + 'title' => 'Preview', + 'allowedAspectRatios' => [ + 'preview' => [ + 'title' => 'Standard', + 'value' => 1.8, + ], + ], + ], + 'zoom' => [ + 'title' => 'Zoom', + 'allowedAspectRatios' => [ + 'free' => [ + 'title' => 'frei', + 'value' => 'NaN', + ], + ], + ], + ], + ], + ], + ], + ], + 'maxitems' => 10 + ], + $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] + ), ], 'products' => [ 'exclude' => 0, diff --git a/public/typo3conf/ext/ep_products/ext_tables.sql b/public/typo3conf/ext/ep_products/ext_tables.sql index fdb72387..98f46684 100644 --- a/public/typo3conf/ext/ep_products/ext_tables.sql +++ b/public/typo3conf/ext/ep_products/ext_tables.sql @@ -529,6 +529,7 @@ CREATE TABLE tx_epproducts_domain_model_concept header_subtitle varchar(255) DEFAULT '' NOT NULL, teaser_images int(11) unsigned NOT NULL default '0', header_images int(11) unsigned NOT NULL default '0', + images int(11) unsigned NOT NULL default '0', tstamp int(11) unsigned DEFAULT '0' NOT NULL, crdate int(11) unsigned DEFAULT '0' NOT NULL, diff --git a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Concept/Detail.html b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Concept/Detail.html index f0a9b881..78588466 100644 --- a/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Concept/Detail.html +++ b/public/typo3conf/ext/ep_theme/Resources/Private/Templates/Concept/Detail.html @@ -18,32 +18,33 @@ {concept.description -> f:format.html()} - -
-
- - -
-
- - +
+
+ + +
+
+ + - + +
+ + +
+ + Alle anzeigen + +
+
+
- - -
- - Alle anzeigen - -
-
+ + + + -
+
{concept.descriptionExtended -> f:format.html()}
+ + + + +