LarsDNN


New Member
Posts: 1
Posted: 06/12/2006 11:26 AM
Last Edit:
Hi,
I was wondering if you know whether or not it's possible to change the way the treeviewmenu works, so that the unfolding/folding of submenus are done by the tab name. And can I remove the folder images, so that the tree is totally without images.
My intention is to have a skin, with a menu where the tabnames open/close the children nodes. I am denpending on DSlocalisator and I only make html-skins.
Have you ever made such a skin? And is it possible to download or get a sneakpeak at your xml, css? 
Best Regards,
LarsDNN.
Vasilis


Yellow Member
Posts: 315
Posted: 06/12/2006 12:20 PM
Last Edit:
Hi,
It's very simple to remove the small images... all you have to do is to wrap the tree with a div and then apply a css style on it:
in the skin.html
< div class="treemenuwrapper" >[TREEVIEWMENU]< /div >
in the skin.css
. treemenuwrapper img{display:none;}
As for the unfolding/folding of submenus by clicking on the tab name, I 've never done that but the only way I can think to do it without change the core is with runtime JavaScript code embedded in the skin. That has to go below the tree's code so the tree will have been rendered before the js code run in the browser.
When I 'll find some free time I 'll try to write those js lines and the first thing I 'll try will be to copy the href attribute value from each item's image and replace the link's href value. And I assume that will be only for the root items.
I 'll post here when I am on it...
Drop a hint if you do it first!
Good luck,
Vasilis