Board Logo

Multiple nodes with same title captions
drupal - 12/17/2007 at 05:48 PM


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).


tigra - 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

Back to forum: