[ic] Which tag do I need.

Dan Browning interchange-users@lists.akopia.com
Fri Jul 27 21:12:01 2001


At 08:40 PM 7/27/2001 -0400, you wrote:
>I am trying to set up some tabs that will highlight the page you are on.
>For example, if you are on the index.html page you the tab will be a
>different color.  If you go to service.html then that tab will be
>highlighted.
>
>I tried the following in the LEFTRIGHT_TOP template but was really just
>guessing. Note, in the example below I also tried the using "area" instead
>of "page" in the if statement.  I would guess that this is pretty simple but
>am still lost.
>
>[if page index]
><a href="[area index]">home</a>
>[else]
><a href="[area index]">HOME</a>
>[/else]
>[/if]
>
>Thanks,
>-Gregg

I think @@MV_PAGE@@ (sp?) is what you're looking for.  You might try some 
java script magic.

i.e.:

[seti this_page]@@MV_PAGE@@[/seti]
[if scratch current_page eq "index"]
         HOME
[else]
         NOT HOME
[/else]
[/if]

It might be handy to do it in [perl] instead and use a switch statement.
HTH,

Dan Browning, Cyclone Computer Systems, danb@cyclonecomputers.com