Index: mod1/class.tx_templavoila_mod1_localization.php =================================================================== --- mod1/class.tx_templavoila_mod1_localization.php (revision 28386) +++ mod1/class.tx_templavoila_mod1_localization.php (working copy) @@ -75,7 +75,14 @@ $this->MOD_SETTINGS =& $this->pObj->MOD_SETTINGS; // Add a localization tab to the sidebar: - $this->pObj->sideBarObj->addItem('localization', $this, 'sidebar_renderItem', $LANG->getLL('localization', 1), 60, true); + $this->pObj->sideBarObj->addItem( + 'localization', + $this, + 'sidebar_renderItem', + $LANG->getLL('localization', 1), + 60, + true + ); } /** Index: mod1/class.tx_templavoila_mod1_sidebar.php =================================================================== --- mod1/class.tx_templavoila_mod1_sidebar.php (revision 28386) +++ mod1/class.tx_templavoila_mod1_sidebar.php (working copy) @@ -93,6 +93,8 @@ $this->doc =& $this->pObj->doc; $this->extKey =& $this->pObj->extKey; + $hideIfEmpty = $pObj->modTSconfig['properties']['showTabsIfEmpty'] ? FALSE : TRUE; + // Register the locally available sidebar items. Additional items may be added by other extensions. if (t3lib_extMgm::isLoaded('version') && $GLOBALS['BE_USER']->check('modules','web_txversionM1')) { $this->sideBarItems['versioning'] = array ( @@ -100,7 +102,7 @@ 'method' => 'renderItem_versioning', 'label' => $LANG->getLL('versioning'), 'priority' => 60, - 'hideIfEmpty' => true, + 'hideIfEmpty' => $hideIfEmpty, ); } @@ -109,7 +111,7 @@ 'method' => 'renderItem_headerFields', 'label' => $LANG->getLL('pagerelatedinformation'), 'priority' => 50, - 'hideIfEmpty' => true, + 'hideIfEmpty' => $hideIfEmpty, ); $this->sideBarItems['advancedFunctions'] = array ( @@ -117,7 +119,7 @@ 'method' => 'renderItem_advancedFunctions', 'label' => $LANG->getLL('advancedfunctions'), 'priority' => 20, - 'hideIfEmpty' => true, + 'hideIfEmpty' => $hideIfEmpty, ); } @@ -134,6 +136,7 @@ * @access public */ function addItem($itemKey, &$object, $method, $label, $priority = 50, $hideIfEmpty = false) { + $hideIfEmpty = $pObj->modTSconfig['properties']['showTabsIfEmpty'] ? FALSE : $hideIfEmpty; $this->sideBarItems[$itemKey] = array ( 'object' => $object, 'method' => $method,