Forums / Cotonti / Support / How to show all categories and its sub categories in the list?

Macik
#39249 2014-03-02 23:22

With this simple function (`catlist`) you can not build complete category tree structure as it prints plain list of categories. So there are 3 ways to solve that:

  1. use plain list out put with path data, and code some js script to trnsform this in complete subcategories menu.
  2. if your structure are not very big and static, you can build completed menu tree with several calls of `catlist` function for different root catagories, placed it (manually) on propper level of you menu structure
  3. write own catlist function to process `$structure` list as multilivel tree
https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F