drupal
Junior Member
Posts: 7
Registered: 11/15/2007
Member Is Offline
|
| posted on 12/17/2007 at 05:48 PM |
|
|
Multiple nodes with same title captions
Hello.
I just reliazed that it's a possiblity to have multiple items with exactly the same captions in my tree. Any suggestions on how to deal with this in
the openItemByCaption() function (TIGRA API).
Thanks.
drupal
|
|
|
tigra
Administrator
Posts: 1976
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 4/14/2008 at 03:41 PM |
|
|
It depends on what is the desired behavior.
The sample in the documentation will process all the items with the matching caption:
var a_item = o_tree.find_item(s_caption); // <- this returns array
for(var n=0; n < a_item.length; n++) {
// items processed one by one in the loop
}
|
|
|