+2010-05-06 Benjamin Mack <benni@typo3.org>
+
+ * Fixed bug #14217: options.pageTree.showPageIdWithTitle doesn't work in record picker and RTE (Thanks to Reinhard Fuehricht)
+
2010-05-06 Susanne Moog <typo3@susanne-moog.de>
* Fixed bug #14185: The tt_content.fe_groups field is not placed under the Access Tab (Thanks to Peter Klein & Lars Houmark)
*/
class localPageTree extends t3lib_browseTree {
+ /**
+ * whether the page ID should be shown next to the title, activate through userTSconfig (options.pageTree.showPageIdWithTitle)
+ * @boolean
+ */
+ public $ext_showPageId = FALSE;
+
/**
* Constructor. Just calling init()
*
* @param array The row for the current element
* @return string The processed icon input value.
*/
- function wrapIcon($icon,$row) {
- return $this->addTagAttributes($icon,' title="id='.$row['uid'].'"');
+ function wrapIcon($icon, $row) {
+ $content = $this->addTagAttributes($icon, ' title="id=' . $row['uid'] . '"');
+ if ($this->ext_showPageId) {
+ $content .= '[' . $row['uid'] . '] ';
+ }
+ return $content;
}
}
case 'page':
$pagetree = t3lib_div::makeInstance('rtePageTree');
$pagetree->thisScript = $this->thisScript;
+ $pagetree->ext_showPageId = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showPageIdWithTitle');
$tree=$pagetree->getBrowsableTree();
$cElements = $this->expandPage();
$pagetree->thisScript=$this->thisScript;
$pagetree->ext_pArrPages = !strcmp($pArr[3],'pages')?1:0;
$pagetree->ext_showNavTitle = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showNavTitle');
+ $pagetree->ext_showPageId = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showPageIdWithTitle');
$pagetree->addField('nav_title');
$tree=$pagetree->getBrowsableTree();
$pagetree = t3lib_div::makeInstance('tx_rtehtmlarea_pageTree');
$pagetree->ext_showNavTitle = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showNavTitle');
+ $pagetree->ext_showPageId = $GLOBALS['BE_USER']->getTSConfigVal('options.pageTree.showPageIdWithTitle');
$pagetree->addField('nav_title');
$tree=$pagetree->getBrowsableTree();
$cElements = $this->expandPage();