[FEATURE] Unify page/list module title
authorFelix Kopp <felix-source@phorax.com>
Sat, 8 Oct 2011 19:39:50 +0000 (21:39 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Wed, 26 Oct 2011 20:57:03 +0000 (22:57 +0200)
The backend modules should have unified headers.
In page and list module the header is the current page title.
This the current page must not be displayed in the path.

Change-Id: Id915f156570f8370fa40a2d1369b7451b5213442
Resolves: #23828
Releases: 4.7
Reviewed-on: http://review.typo3.org/5639
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/cms/layout/db_layout.php
typo3/sysext/recordlist/mod1/index.php
typo3/template.php
typo3/templates/db_layout.html
typo3/templates/db_list.html

index 635d1df..0c93ff1 100755 (executable)
@@ -1086,20 +1086,20 @@ class SC_db_layout {
                        // For Context Sensitive Menus:
                $this->doc->getContextMenuCode();
 
-                       // Now, create listing based on which element is selected in the function menu:
+               $content .= $this->doc->header($this->pageinfo['title']);
 
+                       // Now, create listing based on which element is selected in the function menu:
                if ($this->MOD_SETTINGS['function']==3) {
 
                                // Making page info:
-                       $content.=$this->doc->spacer(10);
-                       $content.=$this->doc->section($GLOBALS['LANG']->getLL('pageInformation'), $dblist->getPageInfoBox($this->pageinfo, $this->CALC_PERMS&2), 0, 1);
+                       $content .= $this->doc->section($GLOBALS['LANG']->getLL('pageInformation'), $dblist->getPageInfoBox($this->pageinfo, $this->CALC_PERMS&2), 0, 1);
                } else {
 
                                // Add the content for each table we have rendered (traversing $tableOutput variable)
-                       foreach($tableOutput as $table => $output)      {
-                               $content.=$this->doc->section('<a name="'.$table.'"></a>'.$dblist->activeTables[$table],$output,TRUE,TRUE,0,TRUE);
-                               $content.=$this->doc->spacer(15);
-                               $content.=$this->doc->sectionEnd();
+                       foreach ($tableOutput as $table => $output)     {
+                               $content .= $this->doc->section('', $output, TRUE, TRUE, 0, TRUE);
+                               $content .= $this->doc->spacer(15);
+                               $content .= $this->doc->sectionEnd();
                        }
 
                                // Making search form:
index 316a6f4..eb4ee16 100644 (file)
@@ -353,7 +353,7 @@ class SC_db_list {
                } // access
 
                        // Begin to compile the whole page, starting out with page header:
-               $this->body='';
+               $this->body = $this->doc->header($this->pageinfo['title']);
                $this->body.= '<form action="'.htmlspecialchars($dblist->listURL()).'" method="post" name="dblistForm">';
                $this->body.= $dblist->HTMLcode;
                $this->body.= '<input type="hidden" name="cmd_table" /><input type="hidden" name="cmd" /></form>';
index 272188e..8809070 100644 (file)
@@ -1982,7 +1982,7 @@ $str.=$this->docBodyTagBegin().
                                // remove current page title
                        $pos = strrpos($title, '/');
                        if ($pos !== FALSE) {
-                               $title = substr($title, 0, $pos) . '/';
+                               $title = substr($title, 0, $pos);
                        }
                } else {
                        $title = '';
index 96c042c..48cf7e9 100644 (file)
@@ -8,7 +8,7 @@
                </div>
                <div id="typo3-docheader-row2">
                        <div class="docheader-row2-left"><div class="docheader-csh">###CSH###</div><div class="docheader-funcmenu">###TOP_FUNCTION_MENU###</div><div class="docheader-funcmenu">###LANGSELECTOR###</div></div>
-                       <div class="docheader-row2-right">###PAGEPATH######PAGEINFO###</div>
+                       <div class="docheader-row2-right">###PAGEPATH###</div>
                </div>
        </div>
        <!-- Content of module, for instance listing, info or editing -->
index 6f17736..091d7e2 100644 (file)
@@ -8,7 +8,7 @@
                </div>
                <div id="typo3-docheader-row2">
                        <div class="docheader-row2-left"><div class="docheader-csh">###CSH###</div></div>
-                       <div class="docheader-row2-right">###PAGEPATH######PAGEINFO###</div>
+                       <div class="docheader-row2-right">###PAGEPATH###</div>
                </div>
        </div>
        <!-- Content of module, for instance listing, info or editing -->