wildcard for url to use pagecolor (/blah.php?act=show&pa

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
aaalexxx
Beginner
Beginner
Posts: 3
Joined: Thu Oct 16, 2003 4:18 pm

wildcard for url to use pagecolor (/blah.php?act=show&pa

Post by aaalexxx »

hi there!

i was thinkin' about something and i don't know if it's possible in v5. what i'd like to have is the possibility to use a wildcard in the urls.

let me explain what i mean:

i have a guestbook on my page for example. so here's the code for a menu:

Code: Select all

with(milonic=new menuname("guestbook")){
style=subStyle;
aI("text=show;url=http://www.mypage.com/?goto=guestbook&action=show;");
}
if i call "http://www.mypage.com/?goto=guestbook&action=show" 'pagecolor' and 'pagebgcolor' is set correctly. but if i call the second page "http://www.mypage.com/?goto=guestbook&a ... how&page=2" (which is not in the menu and can't be there because i can't update it all the time) 'pagecolor' and 'pagebgcolor' are not set, because the url doesn't match the one in the menu.

now, here's my question:

why can't i use wildcards in the urls? it would be perfect if i could change the code to

Code: Select all

with(milonic=new menuname("guestbook")){
style=subStyle;
aI("text=show;url=http://www.mypage.com/?goto=guestbook&action=show*;");
}
the browser should call the "http://www.mypage.com/?goto=guestbook&action=show" then (without the asteriks), but subpages would still match the given url.

is there any way to do this? if not, wouldn't it be a great feature?

any help/answers would be appreciated :roll:

aleks.
User avatar
Hergio
Milonic God
Milonic God
Posts: 1123
Joined: Wed Jun 12, 2002 7:46 pm
Location: Rochester, NY

Post by Hergio »

I like the idea, its definetly got some useage worth. I have heard a couple other people have trouble with the URLs due to query string problems. Maybe not in the initial release, but an addon in the near future?
Dave Hergert
Software Engineer
"Helping to make the menu better, one :?: at a time."
Post Reply