Baobab icon indicating copy to clipboard operation
Baobab copied to clipboard

Retrieve from tree to display a nav menu ?

Open t-prod opened this issue 10 years ago • 2 comments

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

t-prod avatar Jul 20 '14 15:07 t-prod

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

funkyfela avatar Dec 15 '14 01:12 funkyfela

if you solve this problem please help me..

thanks

vahidalvandi avatar Sep 03 '15 09:09 vahidalvandi