{{indexmenu_n>10}}
====== Navigation in different Levels ======
Assumption: The first navigation level is to be represented horizontal, for example in the head area of the side. The deeper levels are to be represented vertically, for example on the left side of the homepage.
Horizontal with the active level category_02 \\
##| home | category_01 | **[category_02]** | category_03 | category_04 | ##
Vertical output of the sub level from the active parent category **[category_02]**
* ##category_02_01##
* ##category_02_02##
* ##category_02_03##
\\
**Docu:** -- \\
**Forum:** [[http://forum.phpwcms.org/viewtopic.php?p=111140#p111140|NAV_LIST_UL in verschiedenen Ebenen]] //(using the hepl of the english/navigation/little-helper/level-lift)//
**Author:** K.Heermann (flip-flop) http://planmatrix.de //2009/05/13 // \\
**CMS-Version:** >= V1.3.0 \\
**Version:** -- \\
**Update:** -- \\
**Condition:** -> [[http://www.phpwcms-docu.de/conf_inc_php_en.phtml|/config/phpwcms/conf.inc.php]] \\
* $phpwcms['allow_cntPHP_rt'] = 1;
----
----
\\
For the parameters to reread ask [[english/navigation/nav_list_ul_parameters|NAV_LIST_UL (parameters)]].\\
The complete CSS-set: [[english/navigation/nav_list_ul|NAV_LIST_UL (CSS)]] \\
To solve the problem we need two navigations, one for the horizontal, the other one for the vertical range. Important is a parameter of the horiz. navigation. \\
The output is restricted to only one level //({NAV_LIST_UL:FP,0,**1**,act_path,active})//.
==== Proceed on the assumption of the following structure (IDs are invented): ====
[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {
$level_id = $GLOBALS['LEVEL_ID'][1];
echo ''.LF;
echo '{NAV_LIST_UL:F,'.$level_id.',,act_path,active}';
echo '';
}
[/PHP]
Where LEVEL_ID'][**X**] is the level which can be indicated. //(Output starting from this level ...).// \\
This second navigation call //({NAV_LIST_UL:....})// thus embedded into a small controll script which queries the levels.
[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {
$level_id = $GLOBALS['LEVEL_ID'][1];
echo ''.LF;
echo '{NAV_LIST_UL:F,'.$level_id.',,act_path,active}';
echo '';
}
[/PHP]
**the output of this is** //(with active level ##**category_02**##)//
##| home | category_01 | **[category_02]** | category_03 | category_04 | ##
* ##category_02_01##
* ##category_02_02##
* ##category_02_03##
\\
**or** //(with active level ##**category_02**## and ##**category_02_01**##)//
##| home | category_01 | **[category_02]** | category_03 | category_04 | ##
* ##**category_02_01**##
* ##category_02_01_01##
* ##category_02_01_02##
* ##category_02_02##
* ##category_02_03##