General Community > Off-Topic

Menu question

(1/3) > >>

ivanisevic82:
Hi!
Sorry for my english, I hope you understand me.
I have a problem using showmenu2.

With this module I created a menu for my web site.

So, working on the css file of my template, I built a menu that change image when I roll with the mouse over the page.

I'd like that when I am in a page, the corresponding part of menu be "active".
Not only when the mouse in hover it, but for all the time I stay in that page.

I hope you understand!

Thank you for help, bye!

erpe0812:
Hello,

we had a thread about that shortly.
Please try the search.
I will also try to find it.

rgds

erpe

Found it: https://forum.WebsiteBaker.org/index.php/topic,11260.0.html
It is in german but hope it helps. It is exact for you are asking for.

ivanisevic82:
I saw it, but is very difficult to me understand something, I used google translate but it didn't help me so much.

So, for the moment I found a solution, adding a code in my css:


--- Code: ---#navigation li.menu-current a{
color: #E41111;
text-decoration: underline;
padding: 0.4em 0.2em 0.3em 1.8em;
background-image: url(/media/Lente.gif);
background-repeat: no-repeat;
}

--- End code ---

But this doesn't resolve all my problem, but only the "soon" page.

I explain to you my situation, maybe we can try a better solution.

My menu is like this:

A1
   B1
   B2
   B3
A2
   B4
   B5
   B6
   B7
   B8
A3
   B9
   B10
   B11
   B12
A4
   B13
        C1
        C2
        C3
            D1
            D2
        C4
   B14
        C5
        C6
   B15
   B16
A5
   B17
   B18
   B19
A6

The "A" menu are placed in a horizontal menu in the top of the page.
All the other page (B, C, D) are son (for exaple, B is son of A and C is son of B).

So, for the part A1; A2; A4; A5; there is no problem: I used this cose, anche I see in the site ONLY the son adjective to the relative mother (A1; A2; etc...)


--- Code: ---show_menu2(0, SM2_ROOT+1, SM2_CURR+1);
--- End code ---

The problem is for the section "A4".
Becouse if I use the code I posted before, I see for the "sub-son" page (C and D) all the page "mother" (if I am in "D" I see in the menu "B, C, D", but I want to see ONLY D!

So, I tried to use this different code:

--- Code: ---show_menu2(0, SM2_CURR+1, SM2_CURR+1);
--- End code ---

But with this, if I am in "D" level, I don't see the other D, but I could see only the son of D.

For the moment I resolved the problem writing in the menu navigation fild ad a normal link, but in this way not all the page are added using showmenu2, and I have a "mixed" menu!

Can you help me to resolve this problem?

Thank you, bye!

erpe0812:
Hello

no sorry, I cannot solve this problem for you.
Maybe a coder or one who is fit with sm2 can help you with this.

I think a link to your page will be helpful.

rgds

erpe

Ruud:
Did you try:


--- Code: ---show_menu2(0, SM2_CURR, SM2_CURR+1);
--- End code ---

If that isn't it, please try to explain what elements you want to see when you are in D1

Ruud

Navigation

[0] Message Index

[#] Next page

Go to full version