node

The node attribute has several functions according to circumstances
In either case the node attribute points to the ID column of a database record.

Insert a new node

When you would like to add a new record, the node attribute will be the parent-node to wich you want to add the new subnode.
If the new node should be inserted to the top level of the tree, then node="0".

Updating or deleting nodes

When updating or deleting nodes from the tree, the node attribute indicates the ID of the database record.

Displaying a path

Path example 1: topnode > parentnode > parentnode > node
Path example 2: topnode > rootnode > parentnode > node

In this case, the node represents the starting point for the path "upwards" to the root of the tree (here "topnode"). When defining a rootnode, the path ends there.
*The path display begins after the "topnode" or the "rootnode".

Moving nodes

Other situations where node is used are with the actions up, down and moveroot

 

Add your comment to this page Add Comment
Join for a free account, or login if you are already a member.