From 80c0f8a48814e430000ec21eea207f87eb5d7eb5 Mon Sep 17 00:00:00 2001 From: Andreas Fernandez Date: Sat, 29 Nov 2014 18:37:20 +0100 Subject: [PATCH] [TASK] Tabbify QuickEdit in Page module Added tabs for Page module > Quick Edit. The superfluous h1 is moved, too. Resolves: #63204 Releases: master Change-Id: I92fd8921ed845118fb9abd1d9153fb88b79e437d Reviewed-on: http://review.typo3.org/34777 Reviewed-by: Helmut Hummel Tested-by: Helmut Hummel Reviewed-by: Christian Kuhn Tested-by: Christian Kuhn --- .../Classes/Controller/PageLayoutController.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/typo3/sysext/backend/Classes/Controller/PageLayoutController.php b/typo3/sysext/backend/Classes/Controller/PageLayoutController.php index 687ae6b2702d..07f3e02b11e5 100644 --- a/typo3/sysext/backend/Classes/Controller/PageLayoutController.php +++ b/typo3/sysext/backend/Classes/Controller/PageLayoutController.php @@ -509,9 +509,9 @@ class PageLayoutController { } else { document.getElementById(idBase+"-"+index+"-DIV").style.display = "block"; if(DTM_origClass=="") { - document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "tabact"; + document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "active"; } else { - DTM_origClass = "tabact"; + DTM_origClass = "active"; } top.DTM_currentTabs[idBase] = index; } @@ -531,9 +531,9 @@ class PageLayoutController { } else { document.getElementById(idBase+"-"+index+"-DIV").style.display = "block"; if(isInit) { - document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "tabact"; + document.getElementById(idBase+"-"+index+"-MENU").attributes.getNamedItem("class").nodeValue = "active"; } else { - DTM_origClass = "tabact"; + DTM_origClass = "active"; } top.DTM_currentTabs[idBase+"-"+index] = 1; } @@ -578,14 +578,15 @@ class PageLayoutController { $this->activeColPosList = implode(',', $this->activeColPosList); $this->colPosList = implode(',', $this->colPosList); - // Page title - $body = $this->doc->header($this->getLocalizedPageTitle()); + $body = ''; $body .= $this->getHeaderFlashMessagesForCurrentPid(); // Render the primary module content: if ($this->MOD_SETTINGS['function'] == 0) { // QuickEdit $body .= $this->renderQuickEdit(); } else { + // Page title + $body .= $this->doc->header($this->getLocalizedPageTitle()); // All other listings $body .= $this->renderListContent(); } @@ -801,6 +802,7 @@ class PageLayoutController { $tceforms->palettesCollapsed = !$this->MOD_SETTINGS['showPalettes']; $tceforms->disableRTE = $this->MOD_SETTINGS['disableRTE']; $tceforms->enableClickMenu = TRUE; + $tceforms->enableTabMenu = TRUE; // Clipboard is initialized: // Start clipboard $tceforms->clipObj = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Clipboard\Clipboard::class); -- 2.20.1