[BUGFIX] Alignment of button "add a new element at this place" 17/28217/2
authorPatrick Broens <patrick@patrickbroens.nl>
Mon, 10 Mar 2014 12:19:49 +0000 (13:19 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 11 Mar 2014 20:41:20 +0000 (21:41 +0100)
In the page module using the "Languages" view, the buttons "add a new
element at this place" are wrongly aligned.

This patch fixes this issue by adding a div which controls this alignment
by CSS

Change-Id: I9de8a47368682ed0b33c2ebfa0a590402c1ca8ef
Resolves: #56720
Releases: 6.1, 6.2
Reviewed-on: https://review.typo3.org/28217
Reviewed-by: Sebastian Fischer
Tested-by: Sebastian Fischer
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
typo3/sysext/backend/Classes/View/PageLayoutView.php

index 1ff30ed..30de7f8 100644 (file)
@@ -469,6 +469,9 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                                        $singleElementHTML .= '</div>';
                                                        $statusHidden = $this->isDisabled('tt_content', $row) ? ' t3-page-ce-hidden' : '';
                                                        $singleElementHTML = '<div class="t3-page-ce' . $statusHidden . '" id="element-tt_content-' . $row['uid'] . '">' . $singleElementHTML . '</div>';
+                                                       if ($this->tt_contentConfig['languageMode']) {
+                                                               $singleElementHTML .= '<div class="t3-page-ce">';
+                                                       }
                                                        $singleElementHTML .= '<div class="t3-page-ce-dropzone" id="colpos-' . $key . '-' . 'page-' . $id .
                                                                '-' . uniqid() . '">';
                                                        // Add icon "new content element below"
@@ -486,12 +489,7 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
                                                                        </div>
                                                                ';
                                                        }
-                                                       if (!$this->tt_contentConfig['languageMode']) {
-                                                               $singleElementHTML .= '
-                                                               </div>';
-                                                       }
-                                                       $singleElementHTML .= '
-                                                       </div>';
+                                                       $singleElementHTML .= '</div></div>';
                                                        if ($this->defLangBinding && $this->tt_contentConfig['languageMode']) {
                                                                $defLangBinding[$key][$lP][$row[$lP ? 'l18n_parent' : 'uid']] = $singleElementHTML;
                                                        } else {