Baobab
Baobab copied to clipboard
Retrieve from tree to display a nav menu ?
Hello,
I follow your example to use your fantastic class. I've just configured it to create a tree for my categories.
One essential question is how to create a nav menu ? I see a method like getPath but it's to retrieve a fragment of a tree.
In the class I see BaobabNode($id, $lft, $rgt, $parentId[, $fields=NULL]) how can I use this to display a nav menu with my adding fields (name and slug).
There is an other way with getDescendants but it only returns node's ID but not the adding fields.
Thanks for your answer,
Regards
how did you configure the database? i am having an error:
CREATE PROCEDURE Baobab_GENERIC_DropTree ( IN node INTEGER UNSIGNED, IN update_numbers INTEGER) LANGUAGE SQL DETERMINISTIC MODIFIES SQL DATA
BEGIN
DECLARE drop_tree_id INTEGER UNSIGNED;
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 10.
Thanks
if you solve this problem please help me..
thanks