![zivXP](https://xoops.org/uploads/avatars/blank.gif)
goffy wrote:
hi
you can add a truncate in your template file
e.g. <{$title|truncate:80}>
Thanks!
goffy wrote:
hi
you can add a truncate in your template file
e.g. <{$title|truncate:80}>
$tree = new XoopsTree($table,'id','parent');
require_once XOOPS_ROOT_PATH . '/class/xoopstree.php';
$tree = new XoopsTree();
$treeData = array(
array('id' => 1, 'parent' => 0),
array('id' => 2, 'parent' => 0),
array('id' => 3, 'parent' => 0),
array('id' => 4, 'parent' => 1),
array('id' => 5, 'parent' => 4),
array('id' => 6, 'parent' => 5)
);
foreach ($treeData as $data) {
$tree->addNode($data['id'], $data['parent']);
}
$treeStructure = $tree->getChildTreeArray(0);
Masxmas wrote:
It is the error that I get and I can not enter the xoops administration. Mark a file in php and the wrong line of code.