diff --git a/Classes/Command/DestinationDataImportCommand.php b/Classes/Command/DestinationDataImportCommand.php index 5cd0802..dd90041 100644 --- a/Classes/Command/DestinationDataImportCommand.php +++ b/Classes/Command/DestinationDataImportCommand.php @@ -23,7 +23,7 @@ class DestinationDataImportCommand extends Command { 'storage-pid', InputArgument::OPTIONAL, 'What is the storage pid?', - '6' + '284' ); $this->addArgument( 'region-uid', @@ -31,12 +31,6 @@ class DestinationDataImportCommand extends Command { 'What is the region uid?', '1' ); - $this->addArgument( - 'category-parent-uid', - InputArgument::OPTIONAL, - 'What is the default category parent uid?', - '52' - ); $this->addArgument('rest-experience', InputArgument::OPTIONAL, 'What is the rest experience?', @@ -59,7 +53,6 @@ class DestinationDataImportCommand extends Command { $input->getArgument('rest-experience'), $input->getArgument('storage-pid'), $input->getArgument('region-uid'), - $input->getArgument('category-parent-uid'), $input->getArgument('files-folder') ); } diff --git a/Classes/Service/DestinationDataImportService.php b/Classes/Service/DestinationDataImportService.php index 1fd0b2b..da15e9a 100644 --- a/Classes/Service/DestinationDataImportService.php +++ b/Classes/Service/DestinationDataImportService.php @@ -185,27 +185,26 @@ class DestinationDataImportService { ); // Set properties - $this->restUrl = $this->settings['destinationData']['restUrl']; - $this->restLicenseKey = $this->settings['destinationData']['license']; - $this->restType = $this->settings['destinationData']['restType']; - $this->restLimit = $this->settings['destinationData']['restLimit']; - $this->restTemplate = $this->settings['destinationData']['restTemplate']; - $this->sysCategoriesPid = $this->settings['destinationData']['categoriesPid']; + $this->restUrl = $this->settings['destinationData']['restUrl']; + $this->restLicenseKey = $this->settings['destinationData']['license']; + $this->restType = $this->settings['destinationData']['restType']; + $this->restLimit = $this->settings['destinationData']['restLimit']; + $this->restTemplate = $this->settings['destinationData']['restTemplate']; + $this->sysCategoriesPid = $this->settings['destinationData']['categoriesPid']; + $this->categoryParentUid = $this->settings['destinationData']['categoryParentUid']; } /** * @param $restExperience * @param $storagePid * @param $regionUid - * @param $categoryParentUid * @param $filesFolder */ - public function import($restExperience, $storagePid, $regionUid, $categoryParentUid, $filesFolder) { + public function import($restExperience, $storagePid, $regionUid, $filesFolder) { $this->restExperience = $restExperience; $this->storagePid = $storagePid; $this->regionUid = $regionUid; - $this->categoryParentUid = $categoryParentUid; $this->filesFolder = $filesFolder; // Get configuration diff --git a/Configuration/TypoScript/constants.typoscript b/Configuration/TypoScript/constants.typoscript index 9b055f4..1aa0668 100644 --- a/Configuration/TypoScript/constants.typoscript +++ b/Configuration/TypoScript/constants.typoscript @@ -26,6 +26,8 @@ plugin.tx_events { restTemplate = ET2014A.json # cat=plugin.tx_events//a; type=string; Label=Category Storage categoriesPid = 54 + # cat=plugin.tx_events//a; type=string; Label=Category Parent ID + categoryParentUid = 6 } } } diff --git a/Configuration/TypoScript/setup.typoscript b/Configuration/TypoScript/setup.typoscript index 0a73f24..0f88a79 100644 --- a/Configuration/TypoScript/setup.typoscript +++ b/Configuration/TypoScript/setup.typoscript @@ -52,6 +52,7 @@ plugin.tx_events { restLimit = {$plugin.tx_events.settings.destinationData.restLimit} restTemplate = {$plugin.tx_events.settings.destinationData.restTemplate} categoriesPid = {$plugin.tx_events.settings.destinationData.categoriesPid} + categoryParentUid = {$plugin.tx_events.settings.destinationData.categoryParentUid} } } }