[TYPO3] menuitem with id "menu<number>"
Stano Paska
stanislav.paska at kios.sk
Mon Aug 28 09:32:22 CEST 2006
Hi Joey.
I solved this by different way.
Another aproach from javascript and more css definitions.
In onclick I dont call show('menu1'), but show(this) and I use DOM to search
previous active item, hide it and show "this" item.
I do not need generate id for menu items any more.
Thank for all your time.
Stano.
> -----Original Message-----
> From: typo3-english-bounces at lists.netfielders.de
> [mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of JoH
> Sent: Friday, August 25, 2006 4:56 PM
> To: typo3-english at lists.netfielders.de
> Subject: Re: [TYPO3] menuitem with id "menu<number>"
>
> >> ul is not rendered.
> >>
> >> I think that .allStdWrap is property of TMEMUITEM.
> >
> > Right... I first created it for "NO" but then moved to
> upper level. My
> > mistake.
> >
> >> Object TMENU has only .wrap and it is not replace {register:}
> >> construction.
> >
> > Correct, wrap is not stdWrap. TMENU do not have stdWraps,
> so you are
> > out of luck I think :(
>
> Why?
>
> You can still use the register inside allWrap and assign this
> to the ACT and CURIFSUB state.
>
> temp.whatever = HMENU
> temp.whatever {
> 1 = TMENU
> 1 {
> wrap = <ul>|</ul>
> NO = 1
> NO {
> allWrap = <li>|</li>
> }
> CUR < .NO
> ACT = 1
> ACT {
> allWrap.cObject = TEXT
> allWrap.cObject {
> value = |
> dataWrap = <li><ul id="menu{register:count_MENUOBJ}">|
> }
> }
> CURIFSUB < .ACT
> }
> 2 < .1
> 3 < .1
> }
>
> Just make sure that you have all those states available as shown.
> NO and CUR haven't got subpages so they work with the default allWrap.
> ACT and CURIFSUB get a "special" allWrap that opens the <ul>
> Tag that gets closed by the wrap of the following menu level.
>
> Not tested though ...
>
> Joey
>
> --
> Wenn man keine Ahnung hat: Einfach mal Fresse halten!
> (If you have no clues: simply shut your knob sometimes!)
> Dieter Nuhr, German comedian
> openBC: http://www.cybercraft.de
>
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
More information about the TYPO3-english
mailing list