write(); } // This code is what you will need to do to make a subtree version of CMSMain $this->generateDataTreeHints(); $this->generateTreeStylingJS(); // blogRoot->ID is your root node $siteTree = $this->getSiteTreeFor("SiteTree", $blogRoot->ID); // This code is copied from getSiteTreeFor(), because getSiteTreeFor has it hard-coded to only generate if rootID = 0 $rootLink = $this->Link() . '0'; if($this->hasMethod('getCMSTreeTitle')) $treeTitle = $this->getCMSTreeTitle(); else $treeTitle = _t('LeftAndMain.SITECONTENTLEFT',"Site Content",PR_HIGH,'Root node on left'); $siteTree = "