mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
Continuing theming work...the rendering passes are all working
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044128
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html"%>
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<title><%=Html.Title() %></title>
|
||||
<title><%=Html.Title() %> - Safe Mode!</title>
|
||||
<% Html.RenderZone("metas"); %>
|
||||
<% Html.RenderZone("styles"); %>
|
||||
<% Html.RenderZone("scripts"); %>
|
||||
|
@@ -13,7 +13,7 @@ namespace Orchard.Mvc.ViewEngines {
|
||||
}
|
||||
|
||||
public static OrchardLayoutContext From(HttpContextBase context) {
|
||||
if (context.Items.Contains(_key)) {
|
||||
if (!context.Items.Contains(_key)) {
|
||||
context.Items.Add(_key, new OrchardLayoutContext());
|
||||
}
|
||||
return (OrchardLayoutContext)context.Items[_key];
|
||||
|
@@ -30,12 +30,14 @@ namespace Orchard.Mvc.ViewEngines {
|
||||
// enable /Views/Shared/"EditorTemplates/+{templateName}
|
||||
viewEngine.PartialViewLocationFormats = new[] {
|
||||
parameters.VirtualPath + "/Views/Shared/{0}.ascx",
|
||||
parameters.VirtualPath + "/Views/Shared/{0}.aspx",
|
||||
};
|
||||
|
||||
// for "routed" request views...
|
||||
// enable /Views/{area}/{controller}/{viewName}
|
||||
viewEngine.AreaPartialViewLocationFormats = new[] {
|
||||
parameters.VirtualPath + "/Views/{2}/{1}/{0}.ascx",
|
||||
parameters.VirtualPath + "/Views/{2}/{1}/{0}.aspx",
|
||||
};
|
||||
|
||||
return viewEngine;
|
||||
|
Reference in New Issue
Block a user