BetaRide
BetaRide

Reputation: 16834

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?

Upvotes: 10

Views: 6273

Answers (2)

Sultanos
Sultanos

Reputation: 463

Place this at your typoscript

meta.X-UA-Compatible = IE=edge,chrome=1

Upvotes: -1

Henri Podolski
Henri Podolski

Reputation: 129

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" />

Upvotes: 9

Related Questions