Page 1 of 1

Splitted vertical Menu

Posted: Fri 22. Jun 2007, 17:46
by bepposun
Hi all,

my vertical category menu looks like that:
Bicycle->Racing Bike->Tour1->Map
Bicycle->Racing Bike->Tour1->Details
next would be
Bicycle->Racing Bike->Tour2->Map
Bicycle->Racing Bike->Tour2->Details
etc.

My intention is to have a basic menu including Tour1 on the left side and the submenu including Map, Details on the right side. This submenu should not be visible on the left side.

Is this possible using the existing replacement tags? If not how to address the specific menu points? I searched already in the forum but found nothing related.

Thanks for your help, Beppo

Posted: Sat 23. Jun 2007, 08:56
by flip-flop
Hi Beppo,

yes it is possible by using NAV_LIST_UL. http://www.phpwcms.de/forum/viewtopic.php?p=83839#83839

Vert. left -> one level deep beginning at ID=0:

Code: Select all

<div class="nlu_navi1">{NAV_LIST_UL:F,0,1,act_path,active}</div>
Vert. at the right -> beginning at level 1. (A output is generated only if there is a categorie:

Code: Select all

[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {
$level_id = $GLOBALS['LEVEL_ID'][1];
echo '<div class="nlu_navi1">'.LF;
echo '{NAV_LIST_UL:F,'.$level_id.',,act_path,active}';
echo '</div>';
}
[/PHP]
the class nlu_navi1 you can change to e.g. nlu_navi2 if you want an other layout for the navi at the right.

And please switch in your config:

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts
Knut

Posted: Mon 25. Jun 2007, 14:54
by bepposun
WOW!!! Thanks!