[TYPO3] Css drop down menu problem
Oliver Rowlands
oliver at liquidlight.co.uk
Wed Jun 13 19:22:39 CEST 2007
Hi Gideon,
Strange it worked for my test menu. Try the following slightly amended
version:
lib.mainmenu >
lib.mainmenu = HMENU
lib.mainmenu {
1 = TMENU
1 {
wrap = <ul> | </ul>
noBlur = 1
expAll = 1
NO {
ATagTitle.field = title
stdWrap.htmlSpecialChars = 1
ATagBeforeWrap = 1
wrapItemAndSub = <li> | </li>
}
ACT = 1
ACT < .NO
ACT {
wrapItemAndSub = <li class="active"> | </li>
}
IFSUB < .NO
IFSUB = 1
IFSUB {
linkWrap = | <!--[if IE 7]><!-->
afterWrap = | <!--<![endif]--><!--[if lte IE
6]><table><tr><td><![endif]-->
wrapItemAndSub = <li> | <!--[if lte IE
6]></td></tr></table></a><![endif]--></li>
}
ACTIFSUB < .IFSUB
ACTIFSUB = 1
ACTIFSUB {
wrapItemAndSub = <li class="active"> | <!--[if lte IE
6]></td></tr></table></a><![endif]--></li>
}
}
2 < .1
2 {
IFSUB = 0
IFACTSUB = 0
}
}
If it still doesn't work then your problem is probably coming from the CSS.
Oliver
Gideon So wrote:
> Hi Oliver,
>
> Okay. IE6 and FF really okay but not IE7. Any clue to make this work
> with IE7?? The original idea I propose in the thread works in IE7 also.
> That's why I need a typoscripts which can produce such a result. Any idea??
>
> Gideon
>
>
>
> Oliver Rowlands ??:
>> Hi Gideon,
>>
>> Indeed that didn't seem to work. Let's give it another go:
>>
>> lib.mainmenu >
>> lib.mainmenu = HMENU
>> lib.mainmenu {
>> entryLevel = 0
>> 1 = TMENU
>> 1 {
>> wrap = <ul> | </ul>
>> noBlur = 1
>> expAll = 1
>> NO {
>> ATagTitle.field = title
>> stdWrap.htmlSpecialChars = 1
>> ATagBeforeWrap = 1
>> wrapItemAndSub = <li> | </li>
>> }
>> ACT = 1
>> ACT < .NO
>> ACT {
>> wrapItemAndSub = <li class="active"> | </li>
>> }
>> IFSUB < .NO
>> IFSUB = 1
>> IFSUB {
>> linkWrap = | <!--[if IE 7]><!-->
>> afterWrap = | <!--<![endif]--><!--[if lte IE
>> 6]><table><tr><td><![endif]-->
>> wrapItemAndSub = <li> | <!--[if lte IE
>> 6]></td></tr></table></a><![endif]--></li>
>> }
>> ACTIFSUB < .IFSUB
>> ACTIFSUB = 1
>> ACTIFSUB {
>> wrapItemAndSub = <li class="active"> | <!--[if lte IE
>> 6]></td></tr></table></a><![endif]--></li>
>> }
>> }
>> 2 < .1
>> }
>>
>> I've tested this in IE6 / Firefox with Typo3 4.1.1 and it works for me.
>>
>> Best regards,
>>
>> Oliver
>>
--
Oliver Rowlands
:: Liquid Light ::
E - oliver at liquidlight.co.uk
W - http://www.liquidlight.co.uk
T - 00 44 (0)845 6 58 88 35
F - 00 44 (0)845 6 58 44 35
More information about the TYPO3-english
mailing list