Index: typo3/template.php =================================================================== --- typo3/template.php (revision 7835) +++ typo3/template.php (working copy) @@ -197,7 +197,7 @@ /** * Whether to use the X-UA-Compatible meta tag - * @var boolean + * @var boolean */ protected $useCompatibilityTag = TRUE; @@ -2116,10 +2116,16 @@ protected function getPagePath($pageRecord) { // Is this a real page if ($pageRecord['uid']) { - $title = $pageRecord['_thePathFull']; + $title = substr($pageRecord['_thePathFull'], 0, -1); + // remove current page title + $pos = strrpos($title, '/'); + if ($pos !== FALSE) { + $title = substr($title, 0, $pos) . '/'; + } } else { - $title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; + $title = ''; } + // Setting the path of the page $pagePath = $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.php:labels.path', 1) . ': '; @@ -2149,7 +2155,8 @@ $iconImg = t3lib_iconWorks::getSpriteIconForRecord('pages', $pageRecord, array('title'=>$alttext)); // Make Icon: $theIcon = $GLOBALS['SOBE']->doc->wrapClickMenuOnIcon($iconImg, 'pages', $pageRecord['uid']); - $pid = $pageRecord['uid']; + $uid = $pageRecord['uid']; + $title = t3lib_BEfunc::getRecordTitle('pages', $pageRecord); } else { // On root-level of page tree // Make Icon $iconImg = t3lib_iconWorks::getSpriteIcon('apps-pagetree-root', array('title' => $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename'])); @@ -2158,11 +2165,12 @@ } else { $theIcon = $iconImg; } - $pid = '0 (root)'; + $uid = '0'; + $title = $GLOBALS['TYPO3_CONF_VARS']['SYS']['sitename']; } // Setting icon with clickmenu + uid - $pageInfo = $theIcon . '[pid: ' . $pid . ']'; + $pageInfo = $theIcon . '' . htmlspecialchars($title) . ' [' . $uid . ']'; return $pageInfo; }