From 2bcddc4df0c8b6df42dfb4040cd8981f56c3079e Mon Sep 17 00:00:00 2001 From: Christian Toffolo Date: Tue, 26 Sep 2023 13:12:43 +0200 Subject: [PATCH] [TASK] Option to disable Frontend Editing loading screen (#724) Resolves: #723 --- Classes/Controller/FrontendEditingModuleController.php | 1 + Resources/Private/Language/locallang_be.xlf | 3 +++ Resources/Private/Templates/FrontendEditingModule/Show.html | 4 +++- ext_conf_template.txt | 3 +++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Classes/Controller/FrontendEditingModuleController.php b/Classes/Controller/FrontendEditingModuleController.php index 252fb950..459bf07a 100644 --- a/Classes/Controller/FrontendEditingModuleController.php +++ b/Classes/Controller/FrontendEditingModuleController.php @@ -552,6 +552,7 @@ public function showAction(ServerRequestInterface $request): ResponseInterface $this->view->assign('protocol', $request->getUri()->getScheme()); $this->view->assign('contentItems', $this->getContentItems()); $this->view->assign('customRecords', $this->getCustomRecords()); + $this->view->assign('disableLoadingScreen', (int)(ConfigurationUtility::getExtensionConfiguration()['disableLoadingScreen'] ?? 0)); $this->view->assign('loadingIcon', $this->iconFactory->getIcon('spinner-circle-dark', Icon::SIZE_LARGE)->render()); $this->initFrontendEditingGui(); diff --git a/Resources/Private/Language/locallang_be.xlf b/Resources/Private/Language/locallang_be.xlf index 427d5f19..3aac465a 100644 --- a/Resources/Private/Language/locallang_be.xlf +++ b/Resources/Private/Language/locallang_be.xlf @@ -13,6 +13,9 @@ Enable placeholders and direct drop-to-edit without modal. + + Disable Frontend Editing loading screen. + diff --git a/Resources/Private/Templates/FrontendEditingModule/Show.html b/Resources/Private/Templates/FrontendEditingModule/Show.html index ffcff0d3..ebd37e86 100644 --- a/Resources/Private/Templates/FrontendEditingModule/Show.html +++ b/Resources/Private/Templates/FrontendEditingModule/Show.html @@ -12,7 +12,9 @@ -
{loadingIcon -> f:format.raw()}
+ +
{loadingIcon -> f:format.raw()}
+
diff --git a/ext_conf_template.txt b/ext_conf_template.txt index 5d99de9a..b6d3ec4b 100644 --- a/ext_conf_template.txt +++ b/ext_conf_template.txt @@ -3,3 +3,6 @@ contentEditableWrapperTagName = div # cat=features/enable/10; type=boolean; label=LLL:EXT:frontend_editing/Resources/Private/Language/locallang_be.xlf:extension_management.placeholders enablePlaceholders = 1 + +# cat=features/enable/20; type=boolean; label=LLL:EXT:frontend_editing/Resources/Private/Language/locallang_be.xlf:extension_management.disable_loading_screen +disableLoadingScreen = 0