General Community > Off-Topic
Menu question
Ruud:
--- Quote ---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".
--- End quote ---
When you are in the backend, and edit the menulink page (B), you need to enter the url or internal link where it should go to.
That was what I meant with "create the link".
Anyway?
Can we have a look at the site when its online?
Bye,
Ruud
ivanisevic82:
Ok, maybe I understand, now i will work to do it.
Thank you very much!
So, the site is not ready and I have to correct all that part...and for the moment it is only a try (I will move it on the official host space after I finish), but I link it becouse I need another help from you!
http://ivanisevic82.netsons.org
All the pages about I spoke in this topic are tha pages that i have a a vertical menu on the left of the web site.
So, all this group of page are Sub page of 8 main page, that are placed in a horizontal menu, on the top of the website.
I'd like that every button of this horizontal main menu be "active" (red) not only when I'm in the page of the button, but when I'm in the sub page too.
In praticse I want that the button "red" show in which area of the web site I am.
For the moment I used a script for every first page of the main menu, to make it "red".
I'd like to find a better solution, that cover all the page in the site.
Ruud:
Two things.
1. I like the script you use for the top menu. It looks great.
2. You won't be able to keep the red top-menu button when you ar in a subpage.
The menu is not built using show_menu2, but it is hardcoded (i assume).
When it was dynamically built you would see classes like menu-parent.
That is something you can use to keep the parent highlighted.
Here in one of my sites I am using that. Clicking the submenu on the right will keep the top menu highlighted.
In your case: For the browser (who needs to do the CSS interpretation) there is no relation between the top menu and the submenu on the side.
You could try to build the top menu with SM2, but that is pretty difficult.
SM2 has an option to add numbers to the classes it generates. (SM2_NUMCLASS)
Using that you could replace your current 8 classes for the menu and make it dynamically.
Again, this will become pretty complicated and will keep you busy for some time.
Ruud
ivanisevic82:
--- Quote from: Ruud on October 08, 2008, 10:13:07 PM ---Two things.
1. I like the script you use for the top menu. It looks great.
2. You won't be able to keep the red top-menu button when you ar in a subpage.
The menu is not built using show_menu2, but it is hardcoded (i assume).
When it was dynamically built you would see classes like menu-parent.
That is something you can use to keep the parent highlighted.
Here in one of my sites I am using that. Clicking the submenu on the right will keep the top menu highlighted.
In your case: For the browser (who needs to do the CSS interpretation) there is no relation between the top menu and the submenu on the side.
You could try to build the top menu with SM2, but that is pretty difficult.
SM2 has an option to add numbers to the classes it generates. (SM2_NUMCLASS)
Using that you could replace your current 8 classes for the menu and make it dynamically.
Again, this will become pretty complicated and will keep you busy for some time.
Ruud
--- End quote ---
Ok, I try to repeat to see if I understand.
As I suspected there is no way to keep red my top menu, untill it is built without SM2.
Before to think at the solution of make dynamic my top menu, I ask to you: when you say "That is something you can use to keep the parent highlighted. Here in one of my sites I am using that"
You want to say that me too can use this "something, that I don't understand what is?
(sorry but my english is very poor).
Thinking about the top menu dynamic (with SM2)...this is the situation:
I learnt yesterday the possibility to use the NUMCLASS, and with this option I surely can create two different menu, placed in different field of the site (horizontal and vertical) but with a "parent relationship".
So, my situation is a little bit more complicated cause the script you liked :D
Now I will post part of the code so you can maybe understand.
It's NOT complete, only same parts to make you understand.
In the php part I made a menu in this way (this is the example of the page "Per le imprese", in the middle of the top menu):
--- Code: ---<li id="Imprese"><a href="http://ivanisevic82.netsons.org/pages/per-le-imprese.php"><span></span>Per le Imprese</a></li>
--- End code ---
and in the CSS part this:
--- Code: ---#Imprese a{width: 112px;left: 489px;background-position: -489px 0}
#Imprese a.active{background-position: -489px -35px}
#Imprese span{width: 112px;background-position: -489px -35px}
--- End code ---
In praticse the element that give me the possibility to use the script รจ che "span", that isn't there when you make a "normal menu".
I ask: the showmenu2 create in a dynamic way something similar? If I want to give a different css code for every one of the 8 part of the menu (Chi siamo; Recupero Crediti, Informazioni; etc...) can I?
Or with SM2 you can only use the css to ALL the menu, and not to single part of it?
So...I'm thinking, but it's only a stupid idea maybe...could I create the (horizontal top) menu with SM2 and to add the part of code (span) usefull to make the script building a separate index of the 8 part of the menu.
What do you think about this possibility?
Thank you, bye!
PS Where are you from? Beacouse...if you speak Italian could be very more simple to me understand! :D
PPS ***Important*** Another possibility could be build 8 different template, where all the menu is made with showmenu2 and the first page of every 8 template, is one of the 8 in the top menu.
And I keep it ever "red" by a script that I could place at the start of every page.
What do you think about it?
Navigation
[0] Message Index
[*] Previous page
Go to full version