diff --git a/src/Orchard.Web/Core/Contents/Views/Item/Display.cshtml b/src/Orchard.Web/Core/Contents/Views/Item/Display.cshtml new file mode 100644 index 000000000..677a9bf34 --- /dev/null +++ b/src/Orchard.Web/Core/Contents/Views/Item/Display.cshtml @@ -0,0 +1,2 @@ +@Display(Model) +[contents display] \ No newline at end of file diff --git a/src/Orchard.Web/Core/Orchard.Core.csproj b/src/Orchard.Web/Core/Orchard.Core.csproj index 3092e978b..401f49ce3 100644 --- a/src/Orchard.Web/Core/Orchard.Core.csproj +++ b/src/Orchard.Web/Core/Orchard.Core.csproj @@ -328,7 +328,6 @@ - @@ -390,10 +389,13 @@ + + + diff --git a/src/Orchard.Web/Core/Routable/Services/RoutableHomePageProvider.cs b/src/Orchard.Web/Core/Routable/Services/RoutableHomePageProvider.cs index 60e39a828..18bd86f49 100644 --- a/src/Orchard.Web/Core/Routable/Services/RoutableHomePageProvider.cs +++ b/src/Orchard.Web/Core/Routable/Services/RoutableHomePageProvider.cs @@ -42,7 +42,7 @@ namespace Orchard.Core.Routable.Services { var model = _contentManager.BuildDisplay(contentItem); return new ViewResult { - ViewName = "Display", + ViewName = "Routable.HomePage", ViewData = new ViewDataDictionary(model) }; } diff --git a/src/Orchard.Web/Core/Routable/Views/Item/Display.cshtml b/src/Orchard.Web/Core/Routable/Views/Item/Display.cshtml new file mode 100644 index 000000000..2f3ae1828 --- /dev/null +++ b/src/Orchard.Web/Core/Routable/Views/Item/Display.cshtml @@ -0,0 +1,2 @@ +@Display(Model) +[routable's item/display] \ No newline at end of file diff --git a/src/Orchard.Web/Core/Routable/Views/Routable.HomePage.cshtml b/src/Orchard.Web/Core/Routable/Views/Routable.HomePage.cshtml new file mode 100644 index 000000000..dc1638dc4 --- /dev/null +++ b/src/Orchard.Web/Core/Routable/Views/Routable.HomePage.cshtml @@ -0,0 +1,2 @@ +@Display(Model) +[routable's item/display homepage] \ No newline at end of file diff --git a/src/Orchard.Web/Core/Shapes/Views/Display.cshtml b/src/Orchard.Web/Core/Shapes/Views/Display.cshtml deleted file mode 100644 index 86e9c225f..000000000 --- a/src/Orchard.Web/Core/Shapes/Views/Display.cshtml +++ /dev/null @@ -1,4 +0,0 @@ -@{ - Html.AddTitleParts((string)Model.Title); -} -@Display(Model) \ No newline at end of file