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 2:12AM
    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.