Highligting a page issue :)

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
imran1malik
Advanced
Advanced
Posts: 12
Joined: Wed Jul 07, 2004 8:07 am

Highligting a page issue :)

Post by imran1malik »

hi to all,

Guyes i have posted a task week ago , on which i have a very good response. and with your help i have solved my problem.

but now we have purchases the milonic menu, and all working fine but highligting creates problem sometimes..

well i simple cases, the higligting is working fine.. mean that i have a menu and the url to which this page is linking .

But i have some different senario.like i tell you,
i have a page which is highligting in the menu, but when this page calls some other page, the source of the page changes, and i m not getting it right. Now the url changes and it doesn't recognize the men u are page name to highlight as because it does not in the menu it self.


i have write a custom script that gets the url of the each page which is requested, and then i pass that page to the pagematch property of the menu, so it highlights the page which i m requesting.

so ny body have ny kind of solution , please tell .

take care

bye

Imran
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

Hi,

You can use pagematch= ; in the menu item with something that would match the url's.

maz
imran1malik
Advanced
Advanced
Posts: 12
Joined: Wed Jul 07, 2004 8:07 am

menu reply

Post by imran1malik »

hi,
thankx 4 help but that is not the solution .

My problem is not that simple.

i want to highlight my pages but the pagematch property of Milonic menu is works only with the url property..

mean that you have a menu and a link, the page match property matches the exact page name as in the url . but i have some different pages in the url n that don't contains sub menu's ..

so if n y body getts my point plz reply
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

You can match pages even if they are not in the menu. It will depend on your structure. For example, you could put pagematch in the particular url of the page you do have a link to and use it for matching a folder. It does not have to match an 'exact' url as in having a page name and extension in it, it can match folders, which means any page that is opened from a link in that folder will show as a match to that category.

Code: Select all

aI("text=news about us;url=http://www.etc/aboutus/news/index.html;pagematch=/aboutus/news/;");
Any link on the index.html page that goes into the aboutus/news/ folder will keep the pagebgcolor and pagecolor as if it were in the menu.

Here is a working example of this Click on the link at the left to Archive That link is NOT in the menu, but you'll see the pagebgcolor still works, both for the main About Us heading and if you open the submenu the one for the News & Events sub category is highlighted also.

Also, there is a function here, but I'm not really sure this is what you need, and it is beyond my knowledge as to how it works or is used. Dynamically change url

Ruth
bling69
Beginner
Beginner
Posts: 5
Joined: Fri Jul 16, 2004 2:47 pm

Post by bling69 »

I think I had a similar problem on this thread.
Bling

http://milonic.com/forum/viewtopic.php?t=4591
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

What you have is beyond me, and is perhaps the solution that imran needs. I do know that if you go to a page through the menu, and the page has a number of links on it, if those pages are in the same folder, then you can use pagematch as shown above and in the example from the link I posted because you can pagematch to the folder rather than a particular page. I do not know if you can pagematch a folder that is not a subfolder of the originally called page. It might be that any links on that page have to have that page's folder as their 'root' or starting folder? Also if the links go to different folders, then using pagematch in this way will not work, and your posted code would be what is needed.

Ruth
imran1malik
Advanced
Advanced
Posts: 12
Joined: Wed Jul 07, 2004 8:07 am

reply

Post by imran1malik »

hi to all,

thnakx ruth,
your idea is very much clear, but my folder which contains the pages are subdivided in three or four sub menus.

mean that i have different slidings menus and which share the same folder , so i can't just match the folder it can select three or four menus.

so tell me how can i do this.

i have one solution in my mind that is , u know all the pages in a menu and just check the url if this page(u make a list of pages to check) is in the url then u can highlight this menu.

Is this is the appropiate solution, or u suggests some thing else.

thankx

bye
imran1malik
Advanced
Advanced
Posts: 12
Joined: Wed Jul 07, 2004 8:07 am

another solution

Post by imran1malik »

hi,
i forgot to add one thing which is that is it poosible that we have a global function which we pass the main menu or submenu name and this function highlight that menu.

or any near thing like i need..

ok
User avatar
Maz
Milonic God
Milonic God
Posts: 1717
Joined: Fri Jun 06, 2003 11:39 pm
Location: San Francisco
Contact:

Post by Maz »

I thought about this, but it doesn't really fit what you are doing.

I remember one kind a pagematch some time back, do a search and try the last pagematch.

Few of us really know js.

maz
imran1malik
Advanced
Advanced
Posts: 12
Joined: Wed Jul 07, 2004 8:07 am

imran

Post by imran1malik »

hi,

maz i try what u said ealier , but this is not fit in my situation.

but thankx in ny way
Post Reply