[TYPO3-core] Typoscript bug?

Robert Wildling robertwildling at gmail.com
Tue Jun 26 12:54:38 CEST 2012


Hi,

A website has a quite complicated Javascript-driven menu, which does not 
work quite well on IE7. Therefore the 3rd level shall just not be shown 
and therefore not genereated - on IE7 and beloiw only.

This Typoscript should do the job:

[browser = msie] &&  [version = <8]
temp.MENU_MAIN.2.NO.cObject >
[global]

(The menu is build with an after cObject construct for the 3rd level...)

The script works - the menu will not be generated in IE7.

But all menu Objects after this script will not be generated either! And 
that is really strange because it clearly depends on the position of the 
anti-IE-7 snippet.

In the TYPOscript, there is this structure:

temp.MENU_MAIN {
...
}

temp.MENU_SUB {
...
}

temp.MENU_FOOTER {
...
}

and so on. When the IE7-snippet is placed after the MENU-MAIN object, 
none of the follwing menues is generated. Whenn it is placed after the 
MENU_SUB object, the MENU_FOOTER will not be rendered. Only placing it 
at the very end makes all the other menues work.

At the moment, this seems to affect only Menu-rendering processes, so 
any other TS still works fine.

BTW: no matter what, the snippet could also be written like 
temp.MENU_MAIN.2 >
--- same effect

This seems to be a very weird behaviour, which I cannot really figure 
out. Does anybody of you guys out there know what is happening here? 
Coudl this be a bug?

Thanks in advance!
Robert


More information about the TYPO3-team-core mailing list