Hi Hans,
if you want to insert wblinks instead of URLs you have to modify modules/xinha/include.php. Line 157:
$js_objs[] = "{url:'" . page_link($page['link']) . "', title:'" .$page['title'] . "', children: " . page_tree_to_linker($page['children']) . "}";
replace with:
$js_objs[] = "{url:'[wblink" . $page['page_id'] . "]', title:'" .$page['title'] . "', children: " . page_tree_to_linker($page['children']) . "}";
The pages are ordered alphabetically which I don't like. If you want the order like the normal page tree change line 146:
$pages = $database->query("SELECT page_id, parent, link, page_title as title FROM ".TABLE_PREFIX."pages WHERE parent = {$parent} ORDER BY page_title");
to:
$pages = $database->query("SELECT page_id, parent, link, page_title as title, position FROM ".TABLE_PREFIX."pages WHERE parent = {$parent} ORDER BY position");
regards
Michael