Table of contents
Open Table of contents
Article body
Today I used jQuery zTree to display backend data as a tree on the frontend. See the official API. The key call is $.fn.zTree.init(“TREE_HTML_ID”,setting(your configuration; see the official API for the available options),zNodes(the data sent from your backend)).
For querying the database and constructing the tree on the backend, see this blog post