Board Logo

tree menu icons
jimstan - 8/16/2006 at 09:44 AM


I have a functioning tree menu that I use for file downloads. I use both word and pdf files, and would like to be able to use icons indicating the file type. I found the location in the tree_tpl.js file, and made a pdf icon that works:
'icon_0' : 'icons/icon_pdf.gif', // leaf icon normal
'icon_4' : 'icons/icon_pdf.gif', // leaf icon selected

How do I make it so a word icon will show up for the word docs?



tigra - 8/16/2006 at 10:30 PM

You should either use item scope settings of the PRO version (this allows you to assign the icons independently for each tree item) or you can customize the tree version for your needs (intermediate to advanced JavaScript skills required).

mskeete - 8/17/2006 at 05:31 AM

Hi, I'm using the PRO version and I wondered, Is there a simply way to set the icon of a leaf or Node regardless of state
I has hoping to avoid specifying the same icon 8 times for each leaf

Also, the documentations does not seem to show how to use icon scope settings for a node (only a leaf)

something like i255:mygif would be idea

tigra - 8/17/2006 at 03:32 PM

check out for the way to simplify the configuration while improving the manageability.

Back to forum: