Function cApiCatGetLevelNode
Seeks through the category tree and returns the node on a specific level.
Example: + 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:
cApiCatGetLevelNode(17,1);
The example would return "Category A" (idcat 15). If you specify an invalid level, the results are undefined.
Package: Core\Backend
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at includes/functions.api.category.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Timo Hummel
Located at includes/functions.api.category.php
integer |
$idcat |
The category number |
integer |
$minLevel = 0 |
The level to extract |
integer
|
The category node on a specific level |