pageimage or anything else? highlight current category

A place for posting requests and information about images used in the menu.
Post Reply
perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago
Contact:

pageimage or anything else? highlight current category

Post by perldev » Sat Aug 28, 2004 1:34 pm

The menu structure of our site is
A
A1
A11..
An
B
B1..

Both A and B are images; each image has two status. fg: A.out.img, A.over.img. If any page under category A is the current page, A should show A.over.img (highlighting A);

How to do this? using pageimage or anything else? Is there an example I can study with?

perldev
Mega User
Mega User
Posts: 115
Joined: Thu Aug 26, 2004 5:23 pm
Location: Chicago
Contact:

Post by perldev » Sat Aug 28, 2004 3:12 pm

I tried pagematch as follow, which doesn't work

Code: Select all

aI("url=/A/a.html;image=/images/A.out.gif;imageover=/images/A.over.gif;showmenu=menu a");
..
with(milonic=new menuame("menu a")){
aI("text=item a1;url=/A/a1.html;pagematch=/A/;");
aI("text=item a2;url=/A2/a2.html;pagematch=/A2/;");
aI("text=item a3;url=/A/a2.html;pagematch=/A/");
..
}

User avatar
Andy
Milonic
Milonic
Posts: 3307
Joined: Sun May 19, 2002 8:23 pm
Location: Menu Developer
Contact:

Post by Andy » Tue Aug 31, 2004 9:19 am

Hi Perldev,

I'm not sure I understand what you are trying to achieve here.

If you can create a sample test page with a little more detail, I'll see what I can do.

Cheers
Andy

User avatar
Ruth
 Team
 Team
Posts: 8761
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth » Sun Sep 05, 2004 12:54 pm

Because you are using a different image in different items for the page matching, to have pagematch work, you need to specify the image in the aI string that you are matching for it. For example:

Code: Select all

with(milonic=new menuame("menu a")){ 
aI("text=item a1;url=/A/a1.html;pagematch=/A/;pageimage=a_out.gif image;"); 
aI("text=item a2;url=/A/a2.html;pagematch=/A2/;pageimage=a_out.gif image;"); 

 ...} 
Then in the B section you'd put the same thing and whatever image is to match the item has to be listed in the item.

As an aside, the code for what you list as imageover is overimage=

Ruth

Post Reply