Hi,
I used to do this by embedding a variable named tab in the vm file, so the
other vm file could check to see which tab was being used as a screen. like
so:
navigation:
#if( $tab == "search" )
<menu code/>
#
screen:
#set( $tab = "search"
--------------------------------------------------
I've found it to be less hassle to use the screen template name, like so:
#if( $data.Parameters.Template =="Search.vm" )
<menucode/>
#end
That way you skip editing the screen..
If your submenu items are linked to the same screen, then I would imagine
you would have to use the first approach.
Hope that answers your question.
:),
Derick
----- Original Message -----
From: "Marc Lustig" <[EMAIL PROTECTED]>
To: "Turbine Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 4:03 AM
Subject: highlighting current menu item
> Hi,
> I want to have a main menu and a sub menu, in different vm-files, to be
> called by my Default.vm layout template.
> Within I want to highlight the current menu item that has been selected.
> HOw do I get the information which menu-item has been selected?
> Read it out of the context?
> Using $navigation ?
> Or $data.getScreen() ?
> Is it possible to write a screen-class for the 2 navigation-templates?
> Is there an example how to do this available?
>
> Browsing the archive didn't help.
> Thanks,
> Marc
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>