From 8aa2a9f0703604d9d60c3f5fdcee3f40b39a5c80 Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Sun, 26 Jul 2015 17:10:09 +0100 Subject: [PATCH] Fixed autoroute part editor template. This fixes an issue where the alias text field becomes hidden when the content is the homepage, while given the home alias updates you should still be able to change the alias of the content item. --- .../Parts.Autoroute.Edit.cshtml | 67 ++++++++++--------- 1 file changed, 34 insertions(+), 33 deletions(-) diff --git a/src/Orchard.Web/Modules/Orchard.Autoroute/Views/EditorTemplates/Parts.Autoroute.Edit.cshtml b/src/Orchard.Web/Modules/Orchard.Autoroute/Views/EditorTemplates/Parts.Autoroute.Edit.cshtml index b4a05b5bb..756791a9b 100644 --- a/src/Orchard.Web/Modules/Orchard.Autoroute/Views/EditorTemplates/Parts.Autoroute.Edit.cshtml +++ b/src/Orchard.Web/Modules/Orchard.Autoroute/Views/EditorTemplates/Parts.Autoroute.Edit.cshtml @@ -18,45 +18,46 @@ } } + + @if (!Model.IsHomePage) { - if (AuthorizedFor(Permissions.SetHomePage)) {
- @Html.EditorFor(m => m.PromoteToHomePage) + @Html.CheckBoxFor(m => m.PromoteToHomePage) - @T("Check to promote this content as the home page") + @T("Check to promote this content as the home page.")
} }