Seeks through the category tree and returns the node on a specific level.
- Category A (15)
|-+ News (16)|
|- News A (17)|
- Category B (18)
|-+ Internal (19)|
Given you are in the leaf "News A" (idcat 17), and you want to get out in which "main" tree you are, you can call the function like this:
The example would return "Category A" (idcat 15). If you specify an invalid level, the results are undefined.
Copyright: four for business AG <www.4fb.de>
Author: Timo Hummel
Located at includes/functions.api.category.php
||The category number|
||The level to extract|
||The category node on a specific level|