diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 447dfe15..cc71032e 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -297,7 +297,7 @@ abstract class LeftAndMain extends Controller { // getChildrenAsUL is a flexible and complex way of traversing the tree $siteTree = $obj->getChildrenAsUL("", ' "
  • ID\" class=\"" . $child->CMSTreeClasses($extraArg) . "\">" . - "Link(),0,-1), "show", $child->ID) . "\" " . (($child->canEdit() || $child->canAddChildren()) ? "" : "class=\"disabled\"") . ">" . + "Link(),0,-1), "show", $child->ID) . "\" " . (($child->canEdit() || $child->canAddChildren()) ? "" : "class=\"disabled\"") . " title=\"Page type: ".$child->class."\" >" . ($child->TreeTitle()) . "" ' diff --git a/javascript/LeftAndMain_left.js b/javascript/LeftAndMain_left.js index 9e191031..cc8de246 100755 --- a/javascript/LeftAndMain_left.js +++ b/javascript/LeftAndMain_left.js @@ -66,6 +66,7 @@ TreeAPI.prototype = { var aTag = document.createElement('a'); aTag.href = SiteTreeHandlers.showRecord_url + idx; + aTag.title = 'Page type: ' + pageType; aTag.innerHTML = title; node.appendChild(aTag); @@ -95,6 +96,8 @@ TreeAPI.prototype = { this.performOnTreeNode(idx, function(treeNode) { treeNode.className = treeNode.className.replace(oldClassName,newClassName); treeNode.aSpan.className = 'a ' + treeNode.className.replace('closed','spanClosed'); + var aTag = treeNode.getElementsByTagName('a')[0]; + aTag.title = 'Page type: ' + newClassName; treeNode.setIconByClass(); }); },