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 find out in which "main" tree you are, you can call the function like this:
cApiCatGetLevelNode(<span class="php-num">17</span>, <span class="php-num">1</span>);
The example would return "Category A" (idcat 15). If you specify an invalid level the results are undefined.
Package: Core\Backend
Deprecated: [2015-05-21] This method is no longer supported (no replacement)
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
Deprecated: [2015-05-21] This method is no longer supported (no replacement)
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 |
[optional] The level to extract |
integer
|
The category node on a specific level |
|
|
|