Differences

This shows you the differences between two versions of the page.

english:technics:internal-function-call:category-top-down [2012/02/22 08:19]
Knut Heermann (flip-flop)
english:technics:internal-function-call:category-top-down [2018/06/03 18:09] (current)
Line 85: Line 85:
\\ \\
-===== Is there a sublevel? =====+\\
-Simple Script to determine whether there is below the current level, a sublevel.+===== Number of sub-levels ===== 
 + 
 +Number of categories of the next level when available. 
 + 
 +<code php> 
 +echo count(getStructureChildData($GLOBALS['content']['cat_id'])); 
 +</code> 
 + 
 +\\ 
 + 
 + 
 +==== Is there a sub-level? ==== 
 + 
 +Simple Script to determine whether there is below the current level, a sub-level.
<code php> <code php>
-// Sub Level available?+// Sub-Level available?
if (!count(getStructureChildData($GLOBALS['content']['cat_id']))) if (!count(getStructureChildData($GLOBALS['content']['cat_id'])))
-   echo 'No Sublevel!';+   echo 'No Sub-level!';
else else
-   echo 'Sublevel available!';+   echo 'Sub-level available!';
</code> </code>
\\ \\
english/technics/internal-function-call/category-top-down.1329895163.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0