[FEATURE] Keep "new content element" icon visible if the column is empty 38/23438/3
authorErnesto Baschny <ernst@cron-it.de>
Wed, 28 Aug 2013 16:57:20 +0000 (18:57 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Thu, 29 Aug 2013 12:45:14 +0000 (14:45 +0200)
Resolves: #51480
Releases: 6.2
Change-Id: Ieaff9ddaf43e339979ecb5fff48678d28b9b0e61
Reviewed-on: https://review.typo3.org/23438
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/t3skin/Resources/Public/Css/visual/module_web_page.css

index aef48e6..2ea7be7 100644 (file)
@@ -426,7 +426,11 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                                $defLanguageCount[$key] = array();
                                        }
                                        // Start wrapping div
-                                       $content[$key] .= '<div class="t3-page-ce-wrapper">';
+                                       $content[$key] .= '<div class="t3-page-ce-wrapper';
+                                       if (count($contentRecordsPerColumn[$key]) === 0) {
+                                               $content[$key] .= ' t3-page-ce-empty';
+                                       }
+                                       $content[$key] .= '">';
                                        // Add new content at the top most position
                                        $content[$key] .= '
                                        <div class="t3-page-ce" id="' . uniqid() . '">
index f4d42c0..0b368ca 100644 (file)
@@ -76,6 +76,10 @@ Web > Page
        visibility: hidden;
 }
 
+.t3-page-ce-empty .t3-page-ce .t3-icon-document-new {
+       visibility: visible;
+}
+
 .t3-page-ce.active .t3-icon-document-new {
        visibility: visible;
 }