Hier ein Codesnippsel der es in Typo3 ermöglicht eine Browserweiche (Conditional Comments) für den Internetexplorer 6 und 7. Zusätzlich kann man auch Javascript einbinden. Einfach folgenden Typoscript Code einfügen.
// Internet Explorer 6 [browser = msie] AND [version = <7] page.headerData.4 = TEXT page.headerData.4.value ( <!--[if lte IE 7]> <style type="text/css" media="screen, projection"> @import "fileadmin/templates/css/ie6.css"; </style> <![endif]--> ) [end] // Internet Explorer 7 [browser = msie] AND [version >6] page.headerData.4 = TEXT page.headerData.4.value ( <!--[if IE 7]> <style type="text/css" media="screen, projection"> @import "fileadmin/templates/css/ie7.css"; </style> <![endif]--> ) [end]
Kategorie tutorials
Ein Kommentar zu “Typo3 – Browserweiche (Conditional Comments)”
Add your Comment
Allowed tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>









Hi,
for me, this worked fine, to deliver different stylesheets to IE6 and IE7:
browser = msie]
[version = 6]
page.includeCSS {
file2 = uploads/tf/ie6.css
}
[end]
browser = msie]
[version = 7]
page.includeCSS {
file2 = uploads/tf/ie7.css
}
[end]
Greetings,
Timo