diff --git a/library/Terminal42/ChangeLanguage/EventListener/DataContainer/PageInitializationListener.php b/library/Terminal42/ChangeLanguage/EventListener/DataContainer/PageInitializationListener.php index df58357..f64cf48 100644 --- a/library/Terminal42/ChangeLanguage/EventListener/DataContainer/PageInitializationListener.php +++ b/library/Terminal42/ChangeLanguage/EventListener/DataContainer/PageInitializationListener.php @@ -80,7 +80,7 @@ private function handleEditAllMode() $this->addRegularLanguageFields( array_diff( array_keys($GLOBALS['TL_DCA']['tl_page']['palettes']), - ['__selector__', 'root', 'folder'] + ['__selector__', 'root', 'rootfallback', 'folder'] ) ); } @@ -91,6 +91,13 @@ private function addRootLanguageFields() ->addField('languageRoot', 'fallback') ->applyToPalette('root', 'tl_page') ; + + if (isset($GLOBALS['TL_DCA']['tl_page']['palettes']['rootfallback'])) { + PaletteManipulator::create() + ->addField('languageRoot', 'fallback') + ->applyToPalette('rootfallback', 'tl_page') + ; + } } /**