Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Add <meta> tag before any other tag in page View modes: 
User avatar
Member
Member
g.luparia-wintech - 1/11/2012 4:02:14 AM
   
Add <meta> tag before any other tag in page
Good morning,
We need to force IE's compatibility mode by adding a X-UA-Compatible meta tag in the <head> section of the HTML page. In particular, we should add:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />

MS specs state that this tag must appear in the <head> section BEFORE any other element (except for the <title> tag and any other <meta> elements).

You can add meta tags in Kentico by modifying the master page's header section, but these tags are rendered under the <link> tag referring to the default CSS for the website, which is no good.
Is there any way to insert meta tags at the beginning of the <head> section without having to write a custom ascx webpart?

User avatar
Member
Member
Leandro Brito - 1/11/2012 7:39:45 AM
   
RE:Add <meta> tag before any other tag in page
I don't know if is possible change the order of tags only by Kentico.

If you want do this for all sites, you could put the Meta on CMSPages/PortalTemplate.aspx.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 1/12/2012 3:01:33 AM
   
RE:Add <meta> tag before any other tag in page
Hello,

I just want to confirm, that this is usually, how our customers tackle this issue. There is a literal with the id tags, which is used to render the tags in all the pages:

<asp:Literal runat="server" ID="tags" EnableViewState="false" />

Best regards,
Boris Pocatko