From 4a93fd096dbe7c3d0686a1d6f331b2b8b13ac213 Mon Sep 17 00:00:00 2001 From: Ronald Barendse Date: Mon, 9 Apr 2018 23:40:20 +0200 Subject: [PATCH 1/3] Code and documentation cleanup - Added solution folders for RJP.MultiUrlPicker.Web.UI, build and root files - Changed casing of URL, added NuGet install command and updated example in documentation - Updated AssemblyInfo attributes - Code cleanup and reformatting --- CHANGELOG.md | 19 ++- README.md | 40 +++--- RJP.MultiUrlPicker.sln | 30 ++++- build/nuspec/RJP.UmbracoMultiUrlPicker.nuspec | 38 +++--- .../MultiUrlPickerPropertyEditor.cs | 127 ++++++------------ .../MultiUrlPickerValueConverter.cs | 49 +++---- .../Properties/AssemblyInfo.cs | 11 +- 7 files changed, 146 insertions(+), 168 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 10567c7..b4bad57 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,10 @@ # Change log -All notable changes to this project will be documented in this file. -This project adheres to [Semantic Versioning](http://semver.org/). +All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). # 2.1.0 ### Features - * #45 - Feature Request : Querystring Parameters. Thanks to @mattbrailsford + * #45 - Feature Request: query string parameters. Thanks to @mattbrailsford * No more "Could not find persisted pre-value for field (minNumberOfItems|maxNumberOfItems)" warnings in the Umbraco log ### Bugfixes @@ -15,14 +14,14 @@ This project adheres to [Semantic Versioning](http://semver.org/). # 2.0.1 ### Bugfixes - * #54 - Multi Url Picker cant add nodes + * #54 - Multi URL Picker can't add nodes # 2.0.0 ### Features * Updated styling to match Umbraco v7.6 - * Added Udi support - * New data types with `max number of items` set to 1 will return a single `Link` or `null`. + * Added UDI support + * New data types with `max number of items` set to 1 will return a single `Link` or `null` Existing data types will continue to return `IEnumerable` ### Breaking @@ -52,16 +51,16 @@ This project adheres to [Semantic Versioning](http://semver.org/). # 1.2.0 ### Features - * #14 - Use url as name when Page Title is left empty + * #14 - Use URL as name when page title is left empty # 1.1.0 ### Features - * #8 - Hide handle when only one item. + * #8 - Hide handle when only one item ### Bugfixes - * #11 - Validation problem with min/max and external links. + * #11 - Validation problem with min/max and external links * #13 - Gracefully handle when the recycling bin is chosen # 1.0.0 @@ -73,7 +72,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Breaking * Upgraded to Umbraco v7.1.2 - * Removed Pick multiple items field + * Removed 'Pick multiple items' field # 0.2.0 ### Features diff --git a/README.md b/README.md index 5bea8f2..c7b15c0 100644 --- a/README.md +++ b/README.md @@ -1,47 +1,51 @@ -# Multi Url Picker for Umbraco 7 +# Multi URL Picker for Umbraco 7 -[![NuGet release](https://img.shields.io/nuget/v/RJP.UmbracoMultiUrlPicker.svg)](https://www.nuget.org/packages/RJP.UmbracoMultiUrlPicker) +[![NuGet release](https://img.shields.io/nuget/v/RJP.UmbracoMultiUrlPicker.svg)](https://www.nuget.org/packages/RJP.UmbracoMultiUrlPicker) [![Our Umbraco project page](https://img.shields.io/badge/our-umbraco-orange.svg)](https://our.umbraco.org/projects/backoffice-extensions/multi-url-picker) -Allows editors to pick and sort multiple urls, it uses Umbraco's link picker which supports internal and external links and media. +Allows editors to pick and sort multiple URLs, it uses Umbraco's link picker which supports internal and external links and media. ## Installation -Install the NuGet [package](https://www.nuget.org/packages/RJP.UmbracoMultiUrlPicker). +Install the [NuGet package](https://www.nuget.org/packages/RJP.UmbracoMultiUrlPicker): + +```powershell +PM> Install-Package RJP.UmbracoMultiUrlPicker +``` or -Install the [package](http://our.umbraco.org/projects/backoffice-extensions/multi-url-picker) from the Umbraco package repository. +Install the [Umbraco package](http://our.umbraco.org/projects/backoffice-extensions/multi-url-picker) from the Umbraco package repository. ## Usage -Add a new property to your document type and select the `Multi Url Picker` property editor in the `pickers` category. +Add a new property to your document type and select the `Multi URL Picker` property editor in the `pickers` category. -If you're using the models builder, you can access the property on your model e.g. `Model.Links` if your property alias is `links`. +If you're using the Models Builder, you can access the property on your model as `IEnumerable` (e.g. `Model.Links` if your property alias is `links`): ```csharp @{ var links = Model.Links.ToList(); } - @if (links.Count > 0) { -