diff --git a/Classes/Controller/Backend/PageLayoutController.php b/Classes/Controller/Backend/PageLayoutController.php index f204d89a4..1d0f160cf 100644 --- a/Classes/Controller/Backend/PageLayoutController.php +++ b/Classes/Controller/Backend/PageLayoutController.php @@ -221,6 +221,8 @@ public function showAction() 'configuration', [ 'allAvailableLanguages' => $this->allAvailableLanguages, + // If we have more then "all-languages" and 1 editors language available + 'moreThenOneLanguageAvailable' => count($this->allAvailableLanguages) > 2 ? true : false, 'lllFile' => 'LLL:EXT:templavoilaplus/Resources/Private/Language/Backend/PageLayout.xlf', 'clipboard' => $this->clipboard2fluid(), 'userSettings' => TemplaVoilaUtility::getBackendUser()->uc['templavoilaplus'] ?? [], @@ -656,8 +658,7 @@ protected function callHandler($type, $key, ...$param) protected function initializeCurrentLanguage() { // Fill array allAvailableLanguages and currently selected language (from language selector or from outside) - $this->allAvailableLanguages = TemplaVoilaUtility::getAvailableLanguages(0, true, true, $this->modSharedTSconfig); - + $this->allAvailableLanguages = TemplaVoilaUtility::getAvailableLanguages($this->pageId, true, true, $this->modSharedTSconfig); $languageFromSession = (int)TemplaVoilaUtility::getBackendUser()->getSessionData('templavoilaplus.language'); // determine language parameter $this->currentLanguageUid = (int)GeneralUtility::_GP('language') > 0 diff --git a/Resources/Private/Templates/Backend/PageLayout/Show.html b/Resources/Private/Templates/Backend/PageLayout/Show.html index 9bae21375..b84fcb125 100644 --- a/Resources/Private/Templates/Backend/PageLayout/Show.html +++ b/Resources/Private/Templates/Backend/PageLayout/Show.html @@ -24,15 +24,15 @@
- +
- +
- +
@@ -79,6 +79,13 @@

{pageTitle}

+ + +