function nstHasAncestor($thandle, $node) { return nstValidNode($thandle, nstAncestor($thandle, $node)); }
function nstBreadcrumbsString($thandle, $node) { // current node $ret = nstNodeAttribute($thandle, $node, "name"); // treat ancestor nodes while (nstAncestor($thandle, $node) != array("l" => 0, "r" => 0)) { $ret = "" . nstNodeAttribute($thandle, nstAncestor($thandle, $node), "name") . " > " . $ret; $node = nstAncestor($thandle, $node); } return $ret; //return " breadcrumb: <font size='1'>".$ret."</font>"; }