Splitted vertical Menu

Discuss phpwcms here, please do not post support requests, bug reports, or feature requests! Non-phpwcms questions, discussion goes in General Chat!
Post Reply
bepposun
Posts: 16
Joined: Fri 22. Jun 2007, 17:28

Splitted vertical Menu

Post 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
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
bepposun
Posts: 16
Joined: Fri 22. Jun 2007, 17:28

Post by bepposun »

WOW!!! Thanks!
Post Reply