General Community > Off-Topic
Menu question
ivanisevic82:
Thanks for your support.
I try to do a question more simple, so I can make the situation clearer for you.
Cosider a menu like this
A
B
C1
C2
C3
When I am in "A" I want to see in the menu the page "B". No problem for this.
But when I click on "B" (in the menu) I'd like to go directly to "C1" page.
In praticse "B" page is usefull only to saw it in the menu when I am in "A" page, but there is nothing inside B!
Maybe you are thnking "why don't you put C1 directly after A (A>C1-C2-C3).
The cause is this: C1-C2-C3 are parts of a sub-group, called "B".
If I don't use the page B, I cannot see the name con the sub-group "B" in the menu, when I am in "A".
Can you help me to resolve this problem?
Thank you!
erpe0812:
So why you dont create B as a Menu Link page, poiting direct to C1?
Thats is all.
rgds
erpe
ivanisevic82:
But in this way "B" (and all the sub pages "C", "D", etc...) will be out from showmenu2 module?
And After: when I'm in C1 i want to see even C2 and C3 in the menu...how I could see it if C1 menu is no mother of them?
Ruud:
What erpe says is the only solution to skip page B.
Create a menulink page for B and link it to C1.
It is a bit tricky to make. You need to create B first, don't fill parameters yet.
Move C1 to be a child of B. Then create the link in B.
Show_menu2:
If you want B to be visible when on C1, use the second parameter SM2_ROOT+1
If you want B to disappear, use SM2_CURR as a second parameter.
Did you have had a look at http://code.jellycan.com/sm2test/ already?
The page is filled with examples for show_menu2.
Ruud
ivanisevic82:
--- Quote from: Ruud on October 08, 2008, 07:31:27 PM ---What erpe says is the only solution to skip page B.
Create a menulink page for B and link it to C1.
It is a bit tricky to make. You need to create B first, don't fill parameters yet.
Move C1 to be a child of B. Then create the link in B.
--- End quote ---
Thank you.
But, how can I create the link in B?
Consider that B has to be child of A.
If I understad I have to create B and don't touch it.
After, I have to create C1 and make it child of B.
In this way I have:
- a menu A without child B;
- a menu B mather of C1;
- a menu C1 child of B.
Maybe all my confusione is becouse I don't understand what I exactly have to do when you say: "hen create the link in B".
Thank you again, bye!
PS I resolved the problem about Showmenu2, i finally understand the documentation!
Bye!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version