Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve from tree to display a nav menu ? #2

Open
t-prod opened this issue Jul 20, 2014 · 2 comments
Open

Retrieve from tree to display a nav menu ? #2

t-prod opened this issue Jul 20, 2014 · 2 comments

Comments

@t-prod
Copy link

t-prod commented Jul 20, 2014

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

@funkyfela
Copy link

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

@vahidalvandi
Copy link

if you solve this problem please help me..

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants