Merge branch 'develop'

This commit is contained in:
Björn Fromme
2022-08-31 09:28:03 +02:00
6 changed files with 47 additions and 13 deletions
@@ -93,6 +93,11 @@ class AbstractDestination extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
*/ */
protected $description = ''; protected $description = '';
/**
* @var string
*/
protected $descriptionExtended = '';
/** /**
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
*/ */
@@ -322,6 +327,22 @@ class AbstractDestination extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
$this->description = $description; $this->description = $description;
} }
/**
* @return string
*/
public function getDescriptionExtended()
{
return $this->descriptionExtended;
}
/**
* @param string $descriptionExtended
*/
public function setDescriptionExtended($descriptionExtended)
{
$this->descriptionExtended = $descriptionExtended;
}
/** /**
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $images * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference> $images
*/ */
@@ -23,7 +23,9 @@ return [
], ],
'types' => [ 'types' => [
'1' => [ '1' => [
'showitem' => '--palette--;;top, name_internal, --palette--;;name, --palette--;;destinations, teaser, keywords, description, party, leisure, facts, officetip, --div--;Bilder/Dateien, teaser_images, header_images, images', 'showitem' => '--palette--;;top, name_internal, --palette--;;name, --palette--;;destinations, teaser,
keywords, description, description_extended, party, leisure, facts, officetip,
--div--;Bilder/Dateien, teaser_images, header_images, images',
], ],
], ],
'palettes' => [ 'palettes' => [
@@ -209,7 +211,18 @@ return [
], ],
'description' => [ 'description' => [
'exclude' => 0, 'exclude' => 0,
'label' => 'Der Ort', 'label' => 'Der Ort (oben)',
'config' => [
'type' => 'text',
'cols' => 40,
'rows' => 15,
'eval' => 'trim',
'enableRichtext' => true,
],
],
'description_extended' => [
'exclude' => 0,
'label' => 'Der Ort (unten)',
'config' => [ 'config' => [
'type' => 'text', 'type' => 'text',
'cols' => 40, 'cols' => 40,
@@ -714,6 +714,7 @@ CREATE TABLE tx_epproducts_domain_model_city
header_subtitle varchar(255) DEFAULT '' NOT NULL, header_subtitle varchar(255) DEFAULT '' NOT NULL,
keywords text NOT NULL, keywords text NOT NULL,
description text NOT NULL, description text NOT NULL,
description_extended text NOT NULL,
party text NOT NULL, party text NOT NULL,
leisure text NOT NULL, leisure text NOT NULL,
teaser_images int(11) unsigned NOT NULL default '0', teaser_images int(11) unsigned NOT NULL default '0',
@@ -71,24 +71,18 @@
<ul class="product-teaser__list-included flex-1 list-none m-0 text-zinc-800 divide-y divide-zinc-400"> <ul class="product-teaser__list-included flex-1 list-none m-0 text-zinc-800 divide-y divide-zinc-400">
<li class="flex items-center space-x-1 py-1"> <li class="flex items-center space-x-1 py-1">
{ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')}
<span class="block flex-1 leading-none"> <span class="block flex-1 leading-none">{f:if(condition: '{season} == "s"', then: 'Bergbahnticket', else: 'Skipass')}</span>
{f:if(condition: '{season} == "s"', then: 'Bergbahnticket', else: 'Skipass')}
</span>
</li> </li>
<f:if condition="{product.feature}"> <f:if condition="{product.feature}">
<li class="flex items-center space-x-1 py-1"> <li class="flex items-center space-x-1 py-1">
{ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')}
<span class="block flex-1 leading-tight"> <span class="block flex-1 leading-tight">{product.feature}</span>
{product.feature}
</span>
</li> </li>
</f:if> </f:if>
<f:if condition="{board}"> <f:if condition="{board}">
<li class="flex items-center space-x-1 py-1"> <li class="flex items-center space-x-1 py-1">
{ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')} {ep:icon(class: 'w-6 h-6 text-ep-primary-light', icon: 'check')}
<span class="block flex-1 leading-tight"> <span class="block flex-1 leading-tight">Verpflegung</span>
{board}
</span>
</li> </li>
</f:if> </f:if>
</ul> </ul>
@@ -75,7 +75,7 @@
</div> </div>
<f:if condition="{settings.hideMoreLink}"> <f:if condition="{settings.hideMoreLink}">
<f:else> <f:else>
<f:link.typolink class="button bg-button" <f:link.typolink class="button bg-button ml-4"
parameter="{settings.defaultSearchPageUid}" parameter="{settings.defaultSearchPageUid}"
additionalParams="f={filterSettings -> ep:filterSettingsEncoder()}" additionalParams="f={filterSettings -> ep:filterSettingsEncoder()}"
additionalAttributes="{rel: 'nofollow'}"> additionalAttributes="{rel: 'nofollow'}">
@@ -84,6 +84,11 @@
</f:else> </f:else>
</f:if> </f:if>
</f:if> </f:if>
<f:if condition="{city.descriptionExtended}">
<div class="p-4 mt-4" data-rte-content>
{city.descriptionExtended -> f:format.html()}
</div>
</f:if>
</div> </div>
<div class="col-span-3 lg:col-span-1"> <div class="col-span-3 lg:col-span-1">
<f:if condition="{teasers}"> <f:if condition="{teasers}">
@@ -32,7 +32,7 @@
<f:if condition="{teasers}"> <f:if condition="{teasers}">
<p class="hidden lg:block"> <p class="hidden lg:block">
<button type="button" <button type="button"
class="button bg-button w-full mb-8" class="button bg-button w-full mb-8 ml-4"
data-controller="scroll-to" data-controller="scroll-to"
data-scroll-to-target-value="teasers" data-scroll-to-target-value="teasers"
data-action="scroll-to#scroll"> data-action="scroll-to#scroll">