From fc3020ffa4a12cb0a489bc5eb35c7219fab30599 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Mon, 24 Feb 2014 11:58:25 +0100 Subject: [PATCH] #U4-4153 Fixed Macro snippets refer to 'MediaCurrent' and 'Show', also polishes other snippets a bit --- .../Templates/EditProfile.cshtml | 4 +- .../Templates/Gallery.cshtml | 2 +- .../ListChildPagesFromChangeableSource.cshtml | 2 +- .../ListChildPagesOrderedByDate.cshtml | 2 +- .../ListChildPagesOrderedByName.cshtml | 2 +- .../ListChildPagesOrderedByProperty.cshtml | 5 +- .../ListChildPagesWithDoctype.cshtml | 2 - .../ListImagesFromMediaFolder.cshtml | 4 +- .../PartialViewMacros/Templates/Login.cshtml | 2 +- .../Templates/LoginStatus.cshtml | 15 ++--- .../Templates/Navigation.cshtml | 3 +- .../Templates/RegisterMember.cshtml | 64 +++++++++---------- .../Templates/SiteMap.cshtml | 10 +-- .../templates/cshtml/Breadcrumb.cshtml | 22 +++---- .../templates/cshtml/EmptyTemplate.cshtml | 2 - .../scripting/templates/cshtml/Gallery.cshtml | 10 +-- .../ListChildPagesFromChangeableSource.cshtml | 2 +- .../cshtml/ListChildPagesOrderedByDate.cshtml | 3 +- .../cshtml/ListChildPagesOrderedByName.cshtml | 3 +- .../ListChildPagesOrderedByProperty.cshtml | 4 +- .../cshtml/ListChildPagesWithDoctype.cshtml | 6 +- .../cshtml/ListImagesFromMediaFolder.cshtml | 7 +- .../cshtml/MultinodeTree-picker.cshtml | 1 - .../templates/cshtml/Navigation.cshtml | 3 +- .../scripting/templates/cshtml/SiteMap.cshtml | 56 ++++++++-------- 25 files changed, 104 insertions(+), 132 deletions(-) diff --git a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml index 33e05dfd36..c37f253709 100644 --- a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/EditProfile.cshtml @@ -3,7 +3,6 @@ @using System.Web.Mvc.Html @using ClientDependency.Core.Mvc @using Umbraco.Web -@using Umbraco.Web.Models @using Umbraco.Web.Controllers @{ @@ -16,7 +15,6 @@ Html.RequiresJs("/umbraco_client/Application/JQuery/jquery.validate.unobtrusive.min.js"); var success = TempData["ProfileUpdateSuccess"] != null; - } @*NOTE: This RenderJsHere code should be put on your main template page where the rest of your script tags are placed*@ @@ -26,7 +24,7 @@ { if (success) { - // This message will show if RedirectOnSucces is set to false (default) + @* This message will show if RedirectOnSucces is set to false (default) *@

Profile updated

} diff --git a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Gallery.cshtml b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Gallery.cshtml index 4ce0d13985..3dc013f2e8 100644 --- a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Gallery.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/Gallery.cshtml @@ -6,7 +6,7 @@ and use it to point the macro at a specific media folder to display it's content a simple list. Macro Parameters To Create, for this macro to work: -Show:True Alias:mediaId Name:Media Folder ID Type:MediaCurrent +Alias:mediaId Name:Media Folder ID Type:Single Media Picker *@ @if (Model.MacroParameters["mediaId"] != null) diff --git a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml index d1fe543412..cbb190dde9 100644 --- a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesFromChangeableSource.cshtml @@ -1,7 +1,7 @@ @inherits Umbraco.Web.Macros.PartialViewMacroPage @* === Macro Parameters To Create === - Show:True Alias:nodeId Name:Node ID Type:Content Picker + Alias:nodeId Name:Node ID Type:Content Picker *@ @if (Model.MacroParameters["startNodeID"] != null) diff --git a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml index c9e79f7892..3a75914e09 100644 --- a/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml +++ b/src/Umbraco.Web.UI/Umbraco/PartialViewMacros/Templates/ListChildPagesOrderedByDate.cshtml @@ -1,7 +1,7 @@ @inherits Umbraco.Web.Macros.PartialViewMacroPage