diff --git a/Classes/Controller/BackendController.php b/Classes/Controller/BackendController.php index 194832b..2909f79 100644 --- a/Classes/Controller/BackendController.php +++ b/Classes/Controller/BackendController.php @@ -27,7 +27,9 @@ ***************************************************************/ use Denkwerk\DwContentElements\Service\FileService; +use Denkwerk\DwContentElements\Service\IniProviderService; use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; +use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Mvc\Controller\ActionController; /** @@ -46,8 +48,16 @@ class BackendController extends ActionController */ public function indexAction() { + /** @var IniProviderService $iniProviderService */ + $iniProviderService = GeneralUtility::makeInstance(IniProviderService::class); + + // Load all provider configurations as array + $providers = $iniProviderService->loadProvider(); + // Check if source extension is enabled - if (ExtensionManagementUtility::isLoaded('dw_content_elements_source') === false) { + if (is_array($providers) && + count($providers) === 0 + ) { // Check if source extension exists if (!is_dir(PATH_typo3conf . 'ext/dw_content_elements_source')) { $this->forward('createSourceExt'); diff --git a/Resources/Private/Layouts/BackendDefault.html b/Resources/Private/Layouts/BackendDefault.html index dea7487..35d2a2c 100644 --- a/Resources/Private/Layouts/BackendDefault.html +++ b/Resources/Private/Layouts/BackendDefault.html @@ -1,29 +1,32 @@ -
-
-
-
-
- -
-
-
-
+
+
+ +
-
+ +
+
+ + +
+
+
+
+ +
+
+
-
- +
-
- - \ No newline at end of file + diff --git a/Resources/Private/Templates/Backend/CreateSourceExt.html b/Resources/Private/Templates/Backend/CreateSourceExt.html index 9111566..f713e4b 100644 --- a/Resources/Private/Templates/Backend/CreateSourceExt.html +++ b/Resources/Private/Templates/Backend/CreateSourceExt.html @@ -10,7 +10,7 @@

-

+

diff --git a/Resources/Private/Templates/Backend/Index.html b/Resources/Private/Templates/Backend/Index.html index 1b7338b..c4f9329 100644 --- a/Resources/Private/Templates/Backend/Index.html +++ b/Resources/Private/Templates/Backend/Index.html @@ -8,22 +8,22 @@

-

+

- +

- + />

- +

- +

ToDos

diff --git a/Resources/Private/Templates/Backend/LoadSourceExt.html b/Resources/Private/Templates/Backend/LoadSourceExt.html index ca0c766..c9294e4 100644 --- a/Resources/Private/Templates/Backend/LoadSourceExt.html +++ b/Resources/Private/Templates/Backend/LoadSourceExt.html @@ -19,7 +19,7 @@

- + \ No newline at end of file