Page 1 of 1

Need help in menus

Posted: Tue 29. Aug 2006, 17:04
by hthomy
Hi, maybe its a trivial question but i am really new in cms, and i couldnt find the answer.

My problem is:

I want two menus on my page, i've made one vertically on the left with the {NAV_TABLE_COLUMN} tag, and its working fine. But for this i've made some of my structure levels hidden.
And i want to use these hidden levels in my horisontal menu on the top. The problem is i dont know how could i make it :(

So i hope someone could help me.
thanks in advance

Edit: I've forgot one more thing, there is ablsoultly no relationship between the horisontal and the vertical menu. They are on the same level i mean, under Home, i just want to seperate them.

Posted: Tue 29. Aug 2006, 18:32
by flip-flop
Hi hthomy,

quick answer: Make a hidden part under home.
Move the parts you will show in the horizontal menu into this hidden part switch them visible.

- home
-- part 01
-- part 02
----- part 02.01
----- part 02.02
-- part 03
-- hidden (unvisible)
---- part 04
---- part 05
..
..
..

thats it.

Knut

Posted: Tue 29. Aug 2006, 18:45
by Oliver Georgi
1. use a current release.
2. best menu solution now is {NAV_LIST_UL} - there you can set menu depth
3. for the horizontal menu also {NAV_LIST_UL} can be used in combination with some additional code like this

lets say you menu looks like this:
ROOT
- Menu 1
- Menu 2
-- Sub 1
-- Sub 2
-- Sub 3
- Menu 3
- Menu 4

left:
{NAV_LIST_UL:,,1} will result in

Code: Select all

<ul>
  <li>Menu 1</li>
  <li>Menu 2</li>
  <li>Menu 3</li>
  <li>Menu 4</li>
</ul>
horizontal: will result in a sub <ul> - but only for "Menu 2" because all other levels have no sub entry.

Code: Select all

[PHP]
if(isset($GLOBALS['LEVEL_ID'][1])) {  
$level_id = $GLOBALS['LEVEL_ID'][1];
echo '{NAV_LIST_UL:,'.$level_id.',1}';
}
[/PHP]
The ",1" limits the level depth shown to 1. Remove it and all sub levels will be available only. There are multiple setting available for {NAV_UL_LIST}.

Oliver

Posted: Tue 29. Aug 2006, 19:10
by hthomy
Thanks but this is not really what i am searching for.

I try to explain again, maybe i was easily misunderstood. Or in other way i dont understand you:)

My site looks like this atm:
+Home
-menu1
-sub1
-sub2
-menu2
-menu3
-menu4
-menu5*
-menu6*
-menu7*
-menu8*

from menu1-menu4 i use the {NAV_TABLE_COLUMN} tag, this menu is on the left, have sub menus and works fine.

from menu5-menu8 with the* these , are hidden, because i want to use them on the top menu.

My question is, how could i seperate them. Which tag should i use?

Posted: Tue 29. Aug 2006, 19:16
by Oliver Georgi
I wouldn't do it this way because this is not logical.

I would split my menu in this way

+Home
-menu1
--sub1
--sub2
-menu2
-menu3
-menu4
- hidden*
--menu5
--menu6
--menu7
--menu8

And then my solution can be used again but combined in this way:

but the horizontal menu does not need the PHP part because you always know the ID of "hidden"
{NAV_LIST_UL:,ID(of hidden)}

Oliver

Posted: Tue 29. Aug 2006, 19:46
by hthomy
Thank you. I've made my menu like U suggested.

But... And i really start to feel like an idiot :)

Could you please give me an example of this
{NAV_LIST_UL} with this ID stuff.
Lets suppose i am an Eskimo :)


Cos i really didnt get the essence :( :?

Thanx, and sorry

Posted: Tue 29. Aug 2006, 19:57
by Oliver Georgi

Posted: Wed 30. Aug 2006, 09:57
by hthomy
{NAV_LIST_UL} is working before 1.2.8?

Posted: Wed 30. Aug 2006, 10:09
by Oliver Georgi
no.

Oliver

Posted: Thu 31. Aug 2006, 22:00
by kolja
short question concerning this thread that handles a problem burning since longer time under my fingernails:

before i start - i would really like to use 1.2.8 - but mod ex_data does not yet work with it breitsch wrote. so no chance yet.

i wanna have this separated top-menu with following structure:

+Home
-menu1
--sub1
--sub2
-menu2
- hidden*
--menu5 ID=6

i include my menu5 ID=6 by using
[ID 6]Menu5[/ID]

well - everything fine - except one important point:

if i click Menu5 later, then my main-navigation suddenly shows the active menu-item hidden*.

HOW DO I PREVENT hidden* TO GET VISIBLE??? the user shall be only shown the article connected with menu5 - not it's hidden menuitem.

thanks in advance

Posted: Thu 31. Aug 2006, 23:03
by flip-flop
Hi kolja,

using the V1.2.8 you can hidden this entry from the menu. In V1.2.6 I haven“t found a solution.

Knut

Posted: Fri 1. Sep 2006, 08:36
by Oliver Georgi
In older releases there was a setting in conf.template_default.inc.php where you can set the active when hidden status (as far I can remember).

Oliver