[TASK] Add plugin name to page module's CE
authorGeorg Ringer <mail@ringerge.org>
Tue, 12 Jun 2012 04:45:02 +0000 (06:45 +0200)
committerGeorg Ringer <mail@ringerge.org>
Wed, 13 Jun 2012 18:48:48 +0000 (20:48 +0200)
During cleanup of the page module's CE rendering
a bit too much cleanup happened and the name
of the plugin is not shown anymore. Furthermore "No
plugin is selected" is now shown if nothing yet selected

Change-Id: I3b2210eca870f3c4f2ed059cf6f80f63dc6416d2
Resolves: #37944
Relases: 6.0
Reviewed-on: http://review.typo3.org/11975
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/cms/layout/class.tx_cms_layout.php
typo3/sysext/cms/layout/locallang.xlf

index 690ce5f..9a360f4 100755 (executable)
@@ -1464,8 +1464,12 @@ class tx_cms_layout extends recordList {
                                        }
                                        if (strcmp($hookOut, '')) {
                                                $out .= $hookOut;
                                        }
                                        if (strcmp($hookOut, '')) {
                                                $out .= $hookOut;
+                                       } elseif (!empty($row['list_type'])) {
+                                               $out .= '<strong>' . $GLOBALS['LANG']->sL(t3lib_BEfunc::getLabelFromItemlist('tt_content', 'list_type', $row['list_type']), TRUE) . '</strong><br />';
                                        } elseif (!empty($row['select_key'])) {
                                                $out .= $GLOBALS['LANG']->sL(t3lib_BEfunc::getItemLabel('tt_content', 'select_key'), 1) . ' ' . $row['select_key'] . '<br />';
                                        } elseif (!empty($row['select_key'])) {
                                                $out .= $GLOBALS['LANG']->sL(t3lib_BEfunc::getItemLabel('tt_content', 'select_key'), 1) . ' ' . $row['select_key'] . '<br />';
+                                       } else {
+                                               $out .= '<strong>' . $GLOBALS['LANG']->getLL('noPluginSelected') . '</strong>';
                                        }
 
                                        $out .= $GLOBALS['LANG']->sL(t3lib_BEfunc::getLabelFromItemlist('tt_content', 'pages', $row['pages']), 1) . '<br />';
                                        }
 
                                        $out .= $GLOBALS['LANG']->sL(t3lib_BEfunc::getLabelFromItemlist('tt_content', 'pages', $row['pages']), 1) . '<br />';
index 9d45bf5..56d1ffc 100644 (file)
                        <trans-unit id="goToListModuleMessage" xml:space="preserve">
                                <source>The current page is a folder. Folders usually don't contain content elements but are used for collecting other types of records.</source>
                        </trans-unit>
                        <trans-unit id="goToListModuleMessage" xml:space="preserve">
                                <source>The current page is a folder. Folders usually don't contain content elements but are used for collecting other types of records.</source>
                        </trans-unit>
+                       <trans-unit id="noPluginSelected" xml:space="preserve">
+                               <source>No plugin selected</source>
+                       </trans-unit>
                </body>
        </file>
 </xliff>
                </body>
        </file>
 </xliff>