guillem
unread,Apr 16, 2009, 3:19:50 AM4/16/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mootree
Hi guys,
I would like to have :
<div class="mooTree_text"><a href="here_my_link.html">my page</a></
div>
instead of
<div class="mooTree_text">my page</div>
while mootree is adopting an existing list (sitemap).
For now, i'm using the onSelect option to follow my links:
var tree;
window.onload = function() {
tree = new MooTreeControl({
div: 'mytree',
select: 'sitemap',
theme: '<?php bloginfo('template_url'); ?>/img/mootree.gif',
onSelect: function(node, state) {
if(node.data.href) {
document.location = node.data.href;
}
}
},{
text: 'Table des matières',
open: true
});
tree.adopt('sitemap');
}
But, it would be better to inject "a" markup.
I read the documentation but i can't figure out how to do it.
Thanks for you help
(and sorry for the crappy english ^^)