IE 9 standards mode?
Is it possible to change the meta tag outputted by Sitefinity <meta http-equiv="X-UA-Compatible" content="IE=8" /> to be IE9 ?
Hi Euan,
This is a bug which is logged for fixing with ID 110882. There is a way to avoid this issue, but it is not elegant and you should work programmatically. Anyway below are the steps
1. Create a page through Sitefinity.
2. Then create the following aspx page in your project
<%@ Page AspCompat="true" %> <%@ Register TagPrefix="sf" Namespace="Telerik.Sitefinity.Web.UI" Assembly="Telerik.Sitefinity" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><headid="Head1"runat="server"> <metahttp-equiv="content-type"content="text/html; charset=utf-8"/></head><body> <formid="aspnetForm"runat="server"> <divclass="sfPublicWrapper"> <sf:SitefinityPlaceHolderID="Body"runat="server"/> </div> </form></body></html>3. In the code behind of the page implement ISitefinityPage interface
#region Properties /// <summary> /// Gets <see cref="RequestContext"/> for the page. /// </summary> publicRequestContext RequestContext get returnthis.requestContext; set this.requestContext = value; /// <summary> /// Gets the content place holders in this page. /// </summary> /// <value>The place holders.</value> publicPlaceHoldersCollection PlaceHolders get returnthis.placeHolders; set this.placeHolders = value; /// <summary> /// Gets or sets the URL evaluation mode - URL segments or query string. /// This property is used by all controls on a page that have URL Evaluators. Information for interpreting a url /// for a specific item or page is passed either through the URL itself or through the QueryString. The /// value of this property indicates which one is used. /// </summary> publicUrlEvaluationMode UrlEvaluationMode get returnthis.urlEvaluationMode; set this.urlEvaluationMode = value; #endregion privateRequestContext requestContext; privatePlaceHoldersCollection placeHolders; privateUrlEvaluationMode urlEvaluationMode;4. Using the API set the ExternalPage property of the PageData for the page you crated
var manager = PageManager.GetManager(); var pn = manager.GetPageNodes().Where(p => p.Title == "ggggg").SingleOrDefault(); pn.Page.ExternalPage = "~/extpage.aspx"; manager.SaveChanges();