Add video link to product export
This commit is contained in:
@@ -82,6 +82,11 @@ class Product
|
||||
*/
|
||||
public $hotels = [];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $video;
|
||||
|
||||
/**
|
||||
* @param \EP\EpProducts\Domain\Model\Product $entity
|
||||
* @return Product
|
||||
@@ -103,6 +108,7 @@ class Product
|
||||
$product->board = SerializationUtility::sanitizeText($entity->getBoardDescription());
|
||||
$product->programme = SerializationUtility::sanitizeText($entity->getProgrammeDescription());
|
||||
$product->images['image'] = SerializationUtility::preprocessImages($entity->getResellerImages());
|
||||
$product->video = $entity->getVideo();
|
||||
|
||||
$product->region = Region::fromEntity($entity->getRegion());
|
||||
$product->city = City::fromEntity($entity->getCity());
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<html data-namespace-typo3-fluid="true" lang="en"
|
||||
xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers"
|
||||
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers"
|
||||
xmlns:v="http://typo3.org/ns/FluidTYPO3/Vhs/ViewHelpers">
|
||||
|
||||
<f:layout name="Default"/>
|
||||
@@ -25,7 +26,7 @@
|
||||
<f:for each="{productData.hotels.hotel}" as="hotel" iteration="iteration">
|
||||
<f:render section="CollapsibleHotel" arguments="{id: '10-{iteration.cycle}', label: 'Unterkunft{f:if(condition: \'{productData.hotels.hotel -> f:count()} > 1\', then: \' {iteration.cycle}\')} (Termine, Zimmer, Leistungen, Bilder)', hotel: hotel}"/>
|
||||
</f:for>
|
||||
<f:render section="CollapsibleImages" arguments="{id: 11, label: 'Allgemeine Bilder', images: productData.images.image}"/>
|
||||
<f:render section="CollapsibleImages" arguments="{id: 11, label: 'Allgemeine Bilder/Video', images: productData.images.image, video: productData.video}"/>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
@@ -298,6 +299,7 @@
|
||||
<f:for each="{images}" as="image">
|
||||
<a href="{image}" target="_blank">{image}</a><br>
|
||||
</f:for>
|
||||
<f:if condition="{video}"><a href="https://vimeo.com/{video}" target="_blank">Vimeo ID: {video}</a></f:if>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user