On 4/6/06, Norbert Rieger <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I changed tabs.html (and globalMacros.vm) to transform the following menu
> definition into HTML:
>
>     <Menu name="Admin" title="menu.Admin.title" location="?User1">
>         <Item name="T1" title="Item 1"/>
>         <Item name="T2" title="Item 2">
>           <Item name="T21" title="Item 2.1"/>
>           <Item name="T22" title="Item 2.2"/>
>           <Item name="T23" title="Item 2.3"/>
>         </Item>
>         <Item name="T3" title="Item 3"/>
>     </Menu>
>
> Every time when clicking on menu "Admin" all items, also for submenu T2, are
> visible.
>
> How can I change this, so that it behaves like the "normal" tabbed menu,
> making the submenu visible only if the top menu is selected.

Unfortunately, I don't know off the top of my head.  If you dig into
the CSS or JavaScript for this menu, you should be able to find the
logic that makes this happen.

Matt

>
> Thanx for your assistance.
>
> Norbert
>
> This is the HTML code (there a missing </li> for "Test" & "Administration",
> but I think this is not a problem).
>
> I also changed the css and js files (duplicate code for "submenu2").
>
>      <ul id="menuList">
>                 <li><a href="" title="Test">Test</a>
>                 <ul class="submenu">
>
>                     <li><a href="$menu.url" title="Item 1">Item 1</a>
>                     </li>
>                     <li><a href="$menu.url" title="Item 2">Item 2</a>
>                     </li>
>                     <li><a href="$menu.url" title="Item 3">Item 3</a>
>                     </li>
>                </ul>
>
>                 <li><a href="?User1"
> title="Administration">Administration</a>
>                 <ul class="submenu">
>                   <li><a href="$menu.url" title="Item 1">Item 1</a>
>                   </li>
>                   <li><a href="$menu.url" title="Item 2">Item 2</a>
>                     <ul class="submenu2">
>                       <li><a href="$menu.url" title="Item 2.1">Item 2.1</a>
>                       </li>
>                       <li><a href="$menu.url" title="Item 2.2">Item 2.2</a>
>                       </li>
>                       <li><a href="$menu.url" title="Item 2.3">Item 2.3</a>
>                       </li>
>                    </ul>
>
>                   <li><a href="$menu.url" title="Item 3">Item 3</a>
>                   </li>
>                 </ul>
>
>                <li><a href="/base/Logout.do" title="Abmelden">Abmelden</a>
>               </li>
>      </ul>
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Auftrag von Matt
> Raible
> Gesendet: Donnerstag, 6. April 2006 10:47
> An: [email protected]
> Betreff: Re: [struts-menu] Tabbed Menu (Velocity) - having more menu
> levels
>
>
> <Item...>
>    <Item...>
>    <Item...>
> </Item...>
>
> On 4/6/06, Norbert Rieger <[EMAIL PROTECTED]> wrote:
> > But how to specify this in menu-config.xml or in my jsp, can I define
> nested
> > <menu> ?
> >
> > <Menu name="Sub 1">
> >   <Menu name="SubSub 1.1">
> >     <Item...>
> >     <Item...>
> >   </Menu>
> >   <Menu name="SubSub 1.2">
> >     <Item...>
> >     <Item...>
> >   </Menu>
> > </Menu>
> >
> > Thanx again for your help
> >
> > Norbert
> > -----Ursprüngliche Nachricht-----
> > Von: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Auftrag von Matt
> > Raible
> > Gesendet: Donnerstag, 6. April 2006 10:20
> > An: [email protected]
> > Betreff: Re: [struts-menu] Tabbed Menu (Velocity) - having more menu
> > levels
> >
> >
> > You could probably modify the template to have one.  I'd proof it out
> > with HTML first, and then tweak the template and CSS to achieve the
> > desired effect.
> >
> > Matt
> >
> > On 4/6/06, Norbert Rieger <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > > Hi,
> > >
> > > I tried "TabbedMenu (Velocity)" and found it very nice.
> > >
> > > Is there a way to have more menu levels (currently only two are
> supported:
> > > MainMenu(tab) & SubMenu).
> > >
> > > I need at least three levels, e.g. Admin->User->New
> > >
> > > Thanx a lot
> > >
> > > N. Rieger
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> > http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> > _______________________________________________
> > struts-menu-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> > that extends applications into web and mobile media. Attend the live
> webcast
> > and join the prime developer group breaking into this new coding
> territory!
> > http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > _______________________________________________
> > struts-menu-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/struts-menu-user
> >
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
> _______________________________________________
> struts-menu-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> struts-menu-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/struts-menu-user
>


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
struts-menu-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/struts-menu-user

Reply via email to