diff --git a/Classes/Domain/Import/Entity/TouristAttraction.php b/Classes/Domain/Import/Entity/TouristAttraction.php
index 4ebc45c..d9dece1 100644
--- a/Classes/Domain/Import/Entity/TouristAttraction.php
+++ b/Classes/Domain/Import/Entity/TouristAttraction.php
@@ -85,6 +85,11 @@ class TouristAttraction extends Place implements MapsToType
*/
protected $isAccessibleForFree = '';
+ /**
+ * @var string
+ */
+ protected $publicAccess = '';
+
public function getSlogan(): string
{
return $this->slogan;
@@ -169,6 +174,11 @@ class TouristAttraction extends Place implements MapsToType
return $this->isAccessibleForFree;
}
+ public function getPublicAccess(): string
+ {
+ return $this->publicAccess;
+ }
+
/**
* @internal for mapping via Symfony component.
*/
@@ -321,6 +331,14 @@ class TouristAttraction extends Place implements MapsToType
$this->isAccessibleForFree = $isAccessibleForFree;
}
+ /**
+ * @internal for mapping via Symfony component.
+ */
+ public function setPublicAccess(string $publicAccess): void
+ {
+ $this->publicAccess = $publicAccess;
+ }
+
public static function getSupportedTypes(): array
{
return [
diff --git a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
index 6166817..56ad276 100644
--- a/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
+++ b/Classes/Domain/Import/Typo3Converter/TouristAttraction.php
@@ -125,6 +125,7 @@ class TouristAttraction implements Converter
'photography' => implode(',', $entity->getPhotographies()),
'pets_allowed' => $entity->getPetsAllowed(),
'is_accessible_for_free' => $entity->getIsAccessibleForFree(),
+ 'public_access' => $entity->getPublicAccess(),
]
);
}
diff --git a/Classes/Domain/Model/Frontend/TouristAttraction.php b/Classes/Domain/Model/Frontend/TouristAttraction.php
index 03994fd..6b960b1 100644
--- a/Classes/Domain/Model/Frontend/TouristAttraction.php
+++ b/Classes/Domain/Model/Frontend/TouristAttraction.php
@@ -123,6 +123,11 @@ class TouristAttraction extends AbstractEntity
*/
protected $isAccessibleForFree = '';
+ /**
+ * @var string
+ */
+ protected $publicAccess = '';
+
public function getTitle(): string
{
return $this->title;
@@ -217,4 +222,9 @@ class TouristAttraction extends AbstractEntity
{
return $this->isAccessibleForFree;
}
+
+ public function getPublicAccess(): string
+ {
+ return $this->publicAccess;
+ }
}
diff --git a/Configuration/TCA/tx_thuecat_tourist_attraction.php b/Configuration/TCA/tx_thuecat_tourist_attraction.php
index 4ad9bfd..2233f63 100644
--- a/Configuration/TCA/tx_thuecat_tourist_attraction.php
+++ b/Configuration/TCA/tx_thuecat_tourist_attraction.php
@@ -173,6 +173,14 @@ return (static function (string $extensionKey, string $tableName) {
'readOnly' => true,
],
],
+ 'public_access' => [
+ 'label' => $languagePath . '.public_access',
+ 'l10n_mode' => 'prefixLangTitle',
+ 'config' => [
+ 'type' => 'input',
+ 'readOnly' => true,
+ ],
+ ],
'opening_hours' => [
'label' => $languagePath . '.opening_hours',
'l10n_mode' => 'exclude',
@@ -256,7 +264,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, is_accessible_for_free, 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, public_access, 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 cc06cc1..2a31852 100644
--- a/Resources/Private/Language/de.locallang.xlf
+++ b/Resources/Private/Language/de.locallang.xlf
@@ -343,6 +343,15 @@
is Accessible for Free
freier Eintritt
+
+
+ no Public Access
+ nicht öffentlich zugänglich
+
+
+ Public Access
+ öffentlich zugänglich
+