Keyword

[Solved] Get all the child categories, how to ?

  • Aimery Marsily
  • Aimery Marsily's Avatar Topic Author
  • Offline
  • Premium Member
More
12 years 6 months ago - 12 years 6 months ago #63439 by Aimery Marsily
[Solved] Get all the child categories, how to ? was created by Aimery Marsily
Is there a way to get all the children from a given category ? For the moment I use the function HasChildren and GetCategoryChild from the K2_Tools module but I was wondering if K2 already had a function to do that.

Thanks

EDIT : Ok I found myself a solution, so for othes, if you need to get ID from all the sub-categories from a parent one, you can use this code :
Log in  or Create an account to join the conversation.