From 3cbb5323273562a8d24dbba2eefd7d3c193a027b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Ros?= Date: Tue, 21 Sep 2010 23:56:59 -0700 Subject: [PATCH] Corrected Edit View in Orchard.ContentTypes --HG-- branch : dev --- .../Orchard.ContentTypes/Views/EditorTemplates/Field.cshtml | 3 +-- .../Views/EditorTemplates/TypePart.cshtml | 4 +++- .../Modules/Orchard.Setup/Services/SetupService.cs | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Field.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Field.cshtml index 147bbd44f..22bf232d6 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Field.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/Field.cshtml @@ -5,8 +5,7 @@ @Html.ActionLink(T("Remove").Text, "RemoveFieldFrom", new { area = "Orchard.ContentTypes", id = Model.Part.Name, Model.Name }, new { itemprop = "RemoveUrl UnsafeUrl" }) @// <- some experimentation
- @//todo (sebros): fix this - @//Html.RenderTemplates(Model.Templates) + @{Html.RenderTemplates(Model.Templates);} @Html.HiddenFor(m => m.Name)@Html.HiddenFor(m => m.FieldDefinition.Name)@Html.HiddenFor(m => m.Index)
\ No newline at end of file diff --git a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/TypePart.cshtml b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/TypePart.cshtml index e6094dac6..2a05be99f 100644 --- a/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/TypePart.cshtml +++ b/src/Orchard.Web/Modules/Orchard.ContentTypes/Views/EditorTemplates/TypePart.cshtml @@ -8,7 +8,9 @@ @if (Model.Templates.Any()) {

@T("{0} Settings:", Model.PartDefinition.DisplayName)

- @DisplayChildren(Model.Templates) + @{ + Html.RenderTemplates(Model.Templates); + }
} @//don't show global part settings for now - @Html.DisplayFor(m => m.PartDefinition.Settings, "Settings", "PartDefinition") diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs index 366201cf6..ff4291712 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs +++ b/src/Orchard.Web/Modules/Orchard.Setup/Services/SetupService.cs @@ -68,7 +68,7 @@ namespace Orchard.Setup.Services { "Shapes", "PublishLater", "Contents", - //"ContentsLocation", + "ContentsLocation", "Dashboard", "Reports", "Feeds",