Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Multi level tree view

edited June 2016 in Share
I have a multi level category table (id, parent, title, ...). The tree view displays just one sublevel, like:

| Parent
| |- Child

I would like to show all levels, like:

| Parent
| |- Child
| | |- Another child

Is this possible?

Comments

  • edited 5:09AM
    Yes. You have to essentially return an array similar to the navigation array specified at the link below where you specify a unique "id" value for each item and specify the parent_id value to the child's parent (or NULL / 0 if it's the root element):
    http://docs.getfuelcms.com/general/navigation

    The Fuel_pages_model and Fuel_navigation_model provide some more advanced examples with multiple levels.
Sign In or Register to comment.