Board Logo

Can we have additional URL or Image URL in Tree Structure
rajesh - 3/22/2007 at 01:45 PM

In the below code snippet of the tree_items.js

var TREE_ITEMS = [
['Level 0', '',
['Level 1','/links1.html',
['Level 2', ''],
['Level 1','',
['Level 2', 'links1.html',
['Level 3', ''],


If i want to add one or more extra link or image URL apart from existing "links1.html" is it possible & HOW TO DO THAT ???
In other words, Can we have 2 URLS for One Node say at Level 0 , Level 1 , Level 2 ,Level 3

Can any one help me in this regard please.

tigra - 3/22/2007 at 02:45 PM

rajesh - 3/22/2007 at 06:15 PM

thanks for the link.

what i am trying to implement is different from the above information.

Basically I need to provide another Action Tag along with the New Image or New HREF in the Tree Structure.
for example : "EDIT" Button or Href, Next to each Nodes in Tree,

below is the Tree Structure which i am trying to built.

Level 0 [edit]
..... Level 1 [edit]
........... Level 2 [edit]
..... Level 1 [edit]
........... Level 2 [edit]
................ Level 3 [edit]

In this case Level 0 has different Action or Event (already exists using tree menu)
Edit Button or Href has Different Action or Event (new link which needs to be built)

Is this Edit Button possible in existing Tree Menu ?


tigra - 3/23/2007 at 06:16 PM

You'll need to modify the code of the tree where it generates the HTML, put any additional HTML after the text of the item inside the Anchor tag.

Back to forum: