Need help in menus

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
hthomy
Posts: 17
Joined: Tue 29. Aug 2006, 16:53

Need help in menus

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

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9934
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
hthomy
Posts: 17
Joined: Tue 29. Aug 2006, 16:53

Post 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?
User avatar
Oliver Georgi
Site Admin
Posts: 9934
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
hthomy
Posts: 17
Joined: Tue 29. Aug 2006, 16:53

Post 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
User avatar
Oliver Georgi
Site Admin
Posts: 9934
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
hthomy
Posts: 17
Joined: Tue 29. Aug 2006, 16:53

Post by hthomy »

{NAV_LIST_UL} is working before 1.2.8?
User avatar
Oliver Georgi
Site Admin
Posts: 9934
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

no.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
kolja
Posts: 43
Joined: Sun 19. Mar 2006, 13:40

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

Post 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
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
Oliver Georgi
Site Admin
Posts: 9934
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post 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
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
Post Reply