Multi level tree view
  • 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?
  • 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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!