[TASK] Tabbify QuickEdit in Page module 77/34777/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sat, 29 Nov 2014 17:37:20 +0000 (18:37 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Sat, 29 Nov 2014 19:03:31 +0000 (20:03 +0100)
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 <helmut.hummel@typo3.org>
Tested-by: Helmut Hummel <helmut.hummel@typo3.org>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Controller/PageLayoutController.php

index 687ae6b..07f3e02 100644 (file)
@@ -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);