@Html.TitleForPage(T("Create New Content").ToString())
+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Create New Content").ToString()), "5");
+
@foreach (var type in Model.ContentTypes) {
@Html.ActionLink((string)type.DisplayName, "Create", new { Area = "Contents", Id = (string)type.Name })
}
\ No newline at end of file
diff --git a/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml b/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml
index 6964cbd90..086ac38b1 100644
--- a/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml
+++ b/src/Orchard.Web/Core/Contents/Views/Admin/Create.cshtml
@@ -1,10 +1,12 @@
@{
var typeDisplayName = Model.ContentItem.TypeDefinition.DisplayName;
var pageTitle = T("Create {0}", typeDisplayName);
+
+ WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: (string)pageTitle.Text), "5");
}
-
@Html.TitleForPage((string)pageTitle.Text)
+
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
- // Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
+// Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
@Display(Model)
}
\ No newline at end of file
diff --git a/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml b/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml
index cf8cb8b92..f389d6fd3 100644
--- a/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml
+++ b/src/Orchard.Web/Core/Contents/Views/Admin/Edit.cshtml
@@ -4,8 +4,10 @@
if (!string.IsNullOrWhiteSpace(typeDisplayName)) {
pageTitle = T("Edit {0}", typeDisplayName);
}
+
+ WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: pageTitle), "5");
}
-
@Html.TitleForPage(pageTitle)
+
@using (Html.BeginFormAntiForgeryPost()) {
@Html.ValidationSummary()
// Model is a Shape, calling Display() so that it is rendered using the most specific template for its Shape type
diff --git a/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml b/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml
index 4253ff3fe..0b2b1a811 100644
--- a/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml
+++ b/src/Orchard.Web/Core/Contents/Views/Admin/List.cshtml
@@ -7,8 +7,10 @@
pageTitle = T("Manage {0} Content", typeDisplayName);
createLinkText = T("Create New {0}", typeDisplayName);
}
+
+ WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: pageTitle), "5");
}
-
@Html.TitleForPage(pageTitle)
+
@Html.ActionLink(createLinkText.Text, "Create", new { Area = "Contents", Id = (string)Model.Options.SelectedFilter }, new { @class = "button primaryAction" })
@Html.TitleForPage(T("Welcome to Orchard").ToString())
+@WorkContext.Layout.BeforeContent.Add(New.BeforeContent(Title: T("Welcome to Orchard").ToString()), "5");
+
@T("This is the place where you can manage your web site, its appearance and its contents. Please take a moment to explore the different menu items on the left of the screen to familiarize yourself with the features of the application. For example, try to change the theme through the “Manage Themes” menu entry. You can also create new pages and manage existing ones through the “Manage Pages” menu entry or create blogs through “Manage Blogs”.")