Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Put meta tag on top of header section in typo3

In order to prevent quirks mode in IE9 I need to add this lines at the very top of every HTML page:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Unfortunately typo3 moves the <meta http-equiv ... line to the end of the header section, making it useless.

How can I tell tyop3 to place the meta tag entry immeditely after the header tag?

like image 811
BetaRide Avatar asked May 29 '12 10:05

BetaRide


1 Answers

You can write the whole header by yourself, by adding disableAllHeaderCode = 1 to your typoscript or you can hack it by adding your meta tag directly to the head tag: page.headTag = <head><meta http-equiv="X-UA-Compatible" content="IE=edge" />

like image 154
Henri Podolski Avatar answered Oct 10 '22 02:10

Henri Podolski