Project

General

Profile

Bug #77734 » forge_77734_v2-part3.patch

Michael Stucki, 2016-09-01 15:59

View differences:

Build/Resources/Public/Less/TYPO3/_element_tree.less
&:before {
display: none;
}
&.list-tree-path {
margin-left: -@tree-control-size;
}
> .list-tree-group {
> .list-tree-control {
margin-left: -@tree-control-size;
typo3/sysext/backend/Classes/Tree/View/AbstractTreeView.php
if (is_array($rootRec)) {
$firstHtml .= $this->getIcon($rootRec);
}
if ($this->ext_showPathAboveMounts) {
$mountPointPid = $rootRec['pid'];
if ($lastMountPointPid !== $mountPointPid) {
$title = \TYPO3\CMS\Backend\Tree\Pagetree\Commands::getMountPointPath($mountPointPid);
$this->tree[] = array('isMountPointPath' => true, 'title' => $title);
}
$lastMountPointPid = $mountPointPid;
}
} else {
// Artificial record for the tree root, id=0
$rootRec = $this->getRootRecord();
typo3/sysext/backend/Classes/Tree/View/ElementBrowserPageTreeView.php
// so we know how many we have to close when all children are done rendering
$closeDepth = [];
foreach ($treeArr as $treeItem) {
if ($treeItem['isMountPointPath']) {
$out .= '<li class="list-tree-path">' . $treeItem['title'] . '</li>';
continue;
}
$classAttr = $treeItem['row']['_CSSCLASS'];
if ($treeItem['isFirst']) {
$out .= '<ul class="list-tree">';
typo3/sysext/backend/Resources/Public/Css/backend.css
.list-tree-root > li:before {
display: none;
}
.list-tree-root > li.list-tree-path {
margin-left: -20px;
}
.list-tree-root > li > .list-tree-group > .list-tree-control {
margin-left: -20px;
}
typo3/sysext/recordlist/Classes/Browser/DatabaseBrowser.php
$pageTree->ext_pArrPages = $allowedTables === 'pages';
$pageTree->ext_showNavTitle = (bool)$backendUser->getTSConfigVal('options.pageTree.showNavTitle');
$pageTree->ext_showPageId = (bool)$backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');
$pageTree->ext_showPathAboveMounts = (bool)$backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts');
$pageTree->addField('nav_title');
$tree = $pageTree->getBrowsableTree();
typo3/sysext/recordlist/Classes/LinkHandler/PageLinkHandler.php
/** @var ElementBrowserPageTreeView $pageTree */
$pageTree = GeneralUtility::makeInstance(ElementBrowserPageTreeView::class);
$pageTree->setLinkParameterProvider($this);
$pageTree->ext_showPageId = (bool)$backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');
$pageTree->ext_showNavTitle = (bool)$backendUser->getTSConfigVal('options.pageTree.showNavTitle');
$pageTree->ext_showPageId = (bool)$backendUser->getTSConfigVal('options.pageTree.showPageIdWithTitle');
$pageTree->ext_showPathAboveMounts = (bool)$backendUser->getTSConfigVal('options.pageTree.showPathAboveMounts');
$pageTree->addField('nav_title');
$this->view->assign('temporaryTreeMountCancelLink', $this->getTemporaryTreeMountCancelNotice());
(10-10/11)