[TYPO3-english] Cannot fold or un-fold tree (t3lib_treeView)

Matthias Stübner info at TYPO3Consultant.de
Fri Dec 25 10:43:28 CET 2009

Hi all, 

I made a page tree using t3lib_treeView, with the following code. The thing
I don't get to work is, to open or to close nodes. An open node has a minus
in fron, but it is only an image, so a click on it doesn't close the node.

Any hint what I miss would be great, thanx in advance.

class userTree extends t3lib_treeView {
	public function init() {
		$this->MOUNTS = array(2);
		$this->table = 'pages';
		$this->treeName = 'MMounts';
		$this->expandAll = 1;
		$this->expandFirst = 1;

in my module:

	$tree = t3lib_div::makeInstance('userTree');
	$content = 'Tree: <br />'.$tree->getBrowsableTree();
	$this->content.=$this->doc->section('Message #3:',$content,0,1);

br Matthias

More information about the TYPO3-english mailing list