diff --git a/Classes/Domain/Import/Entity/TouristAttraction.php b/Classes/Domain/Import/Entity/TouristAttraction.php
index d7b14eb..4ebc45c 100644
--- a/Classes/Domain/Import/Entity/TouristAttraction.php
+++ b/Classes/Domain/Import/Entity/TouristAttraction.php
@@ -80,6 +80,11 @@ class TouristAttraction extends Place implements MapsToType
*/
protected $petsAllowed = '';
+ /**
+ * @var string
+ */
+ protected $isAccessibleForFree = '';
+
public function getSlogan(): string
{
return $this->slogan;
@@ -159,6 +164,11 @@ class TouristAttraction extends Place implements MapsToType
return $this->petsAllowed;
}
+ public function getIsAccessibleForFree(): string
+ {
+ return $this->isAccessibleForFree;
+ }
+
/**
* @internal for mapping via Symfony component.
*/
@@ -303,6 +313,14 @@ class TouristAttraction extends Place implements MapsToType
$this->petsAllowed = $petsAllowed;
}
+ /**
+ * @internal for mapping via Symfony component.
+ */
+ public function setIsAccessibleForFree(string $isAccessibleForFree): void
+ {
+ $this->isAccessibleForFree = $isAccessibleForFree;
+ }
+
public static function getSupportedTypes(): array
{
return [
diff --git a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
index cafa47d..6166817 100644
--- a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
+++ b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
@@ -124,6 +124,7 @@ class TouristAttraction implements Converter
'digital_offer' => implode(',', $entity->getDigitalOffers()),
'photography' => implode(',', $entity->getPhotographies()),
'pets_allowed' => $entity->getPetsAllowed(),
+ 'is_accessible_for_free' => $entity->getIsAccessibleForFree(),
]
);
}
diff --git a/Classes/Domain/Model/Frontend/TouristAttraction.php b/Classes/Domain/Model/Frontend/TouristAttraction.php
index 28a18dc..03994fd 100644
--- a/Classes/Domain/Model/Frontend/TouristAttraction.php
+++ b/Classes/Domain/Model/Frontend/TouristAttraction.php
@@ -118,6 +118,11 @@ class TouristAttraction extends AbstractEntity
*/
protected $petsAllowed = '';
+ /**
+ * @var string
+ */
+ protected $isAccessibleForFree = '';
+
public function getTitle(): string
{
return $this->title;
@@ -207,4 +212,9 @@ class TouristAttraction extends AbstractEntity
{
return $this->petsAllowed;
}
+
+ public function getIsAccessibleForFree(): string
+ {
+ return $this->isAccessibleForFree;
+ }
}
diff --git a/Configuration/TCA/tx_thuecat_tourist_attraction.php b/Configuration/TCA/tx_thuecat_tourist_attraction.php
index 89e87c3..4ad9bfd 100644
--- a/Configuration/TCA/tx_thuecat_tourist_attraction.php
+++ b/Configuration/TCA/tx_thuecat_tourist_attraction.php
@@ -165,6 +165,14 @@ return (static function (string $extensionKey, string $tableName) {
'readOnly' => true,
],
],
+ 'is_accessible_for_free' => [
+ 'label' => $languagePath . '.is_accessible_for_free',
+ 'l10n_mode' => 'prefixLangTitle',
+ 'config' => [
+ 'type' => 'input',
+ 'readOnly' => true,
+ ],
+ ],
'opening_hours' => [
'label' => $languagePath . '.opening_hours',
'l10n_mode' => 'exclude',
@@ -248,7 +256,7 @@ return (static function (string $extensionKey, string $tableName) {
],
'types' => [
'0' => [
- 'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, museum_service, architectural_style, traffic_infrastructure, payment_accepted, digital_offer, photography, pets_allowed, opening_hours, offers, address, media, remote_id, --div--;' . $languagePath . '.tab.relations, town, managed_by',
+ 'showitem' => '--palette--;;language, title, description, slogan, start_of_construction, sanitation, other_service, museum_service, architectural_style, traffic_infrastructure, payment_accepted, digital_offer, photography, pets_allowed, is_accessible_for_free, opening_hours, offers, address, media, remote_id, --div--;' . $languagePath . '.tab.relations, town, managed_by',
],
],
];
diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf
index 9bd3757..cc06cc1 100644
--- a/Resources/Private/Language/de.locallang.xlf
+++ b/Resources/Private/Language/de.locallang.xlf
@@ -334,6 +334,15 @@
Tiere erlaubt
+
+
+
+ kein freier Eintritt
+
+
+
+ freier Eintritt
+