Skip to content
This repository was archived by the owner on Jun 18, 2018. It is now read-only.

Commit c38c11a

Browse files
authored
Merge pull request #112 from umco/develop
Preparing for v0.4.0 release
2 parents 99ebbf7 + b58aca2 commit c38c11a

19 files changed

+265
-114
lines changed

LICENSE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
The MIT License (MIT)
2+
13
Copyright © 2014 Umbrella Inc, Our Umbraco and other contributors
24

35
Permission is hereby granted, free of charge, to any person obtaining a copy of

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nested Content
22

3-
[![Build status](https://img.shields.io/appveyor/ci/leekelleher/umbraco-nested-content.svg)](https://ci.appveyor.com/project/leekelleher/umbraco-nested-content)
3+
[![Build status](https://img.shields.io/appveyor/ci/UMCO/umbraco-nested-content.svg)](https://ci.appveyor.com/project/UMCO/umbraco-nested-content)
44
[![NuGet release](https://img.shields.io/nuget/v/Our.Umbraco.NestedContent.svg)](https://www.nuget.org/packages/Our.Umbraco.NestedContent)
55
[![Our Umbraco project page](https://img.shields.io/badge/our-umbraco-orange.svg)](https://our.umbraco.org/projects/backoffice-extensions/nested-content)
66
[![Chat on Gitter](https://img.shields.io/badge/gitter-join_chat-green.svg)](https://gitter.im/leekelleher/umbraco-nested-content)
@@ -21,7 +21,7 @@ Nested Content can be installed from either Our Umbraco or NuGet package reposit
2121

2222
To install from Our Umbraco, please download the package from:
2323

24-
> [https://our.umbraco.org/projects/backoffice-extensions/nested-content](https://our.umbraco.org/projects/backoffice-extensions/nested-content)
24+
> <https://our.umbraco.org/projects/backoffice-extensions/nested-content>
2525
2626
#### NuGet package repository
2727

@@ -39,7 +39,7 @@ If you prefer, you can compile Nested Content yourself, you'll need:
3939

4040
To clone it locally click the "Clone in Windows" button above or run the following git commands.
4141

42-
git clone https://github.com/leekelleher/umbraco-nested-content.git umbraco-nested-content
42+
git clone https://github.com/umco/umbraco-nested-content.git umbraco-nested-content
4343
cd umbraco-nested-content
4444
.\build.cmd
4545

@@ -55,14 +55,16 @@ A PDF download is also available: [Nested Content - Developers Guide v1.0.pdf](d
5555

5656
## Known Issues
5757

58-
Please be aware that not all property-editors will work within Nested Content. The following property-editors are known to have compatibility issues:
58+
Please be aware that not all property-editors will work within Nested Content. The following Umbraco core property-editors are known to have compatibility issues:
5959

60-
* Checkbox List (default Umbraco core)
61-
* Image Cropper (default Umbraco core)
62-
* Macro Container (default Umbraco core)
63-
* Radiobutton List (default Umbraco core)
64-
* Repeatable Textstring (default Umbraco core) - this works in the back-office, but due to a bug in the value-converter it will produce additional blank entries
65-
* Upload (default Umbraco core)
60+
* Checkbox List
61+
* Dropdown List Multiple
62+
* Image Cropper
63+
* Macro Container
64+
* Radiobutton List
65+
* Repeatable Textstring - _this works in the back-office, but due to a bug in the value-converter it will produce additional blank entries_
66+
* Tags - _this appears to work, but by design it is intended to work once per page_
67+
* Upload
6668

6769
---
6870

@@ -80,7 +82,7 @@ Anyone and everyone is welcome to contribute. Please take a moment to review the
8082
Have a question?
8183

8284
* [Nested Content Forum](https://our.umbraco.org/projects/backoffice-extensions/nested-content/nested-content-feedback) on Our Umbraco
83-
* [Raise an issue](https://github.com/leekelleher/umbraco-nested-content/issues) on GitHub
85+
* [Raise an issue](https://github.com/umco/umbraco-nested-content/issues) on GitHub
8486

8587

8688
## Dev Team
@@ -95,6 +97,6 @@ Have a question?
9597

9698
## License
9799

98-
Copyright &copy; 2015 Umbrella Inc, Our Umbraco and [other contributors](https://github.com/leekelleher/umbraco-nested-content/graphs/contributors)
100+
Copyright &copy; 2015 Umbrella Inc, Our Umbraco and [other contributors](https://github.com/umco/umbraco-nested-content/graphs/contributors)
99101

100102
Licensed under the [MIT License](LICENSE.md)

appveyor.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# version format
2-
version: 0.3.0.{build}
2+
version: 0.4.0.{build}
33

44
# UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha
55
# example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta
@@ -17,30 +17,20 @@ artifacts:
1717
- path: artifacts\*.zip
1818

1919
deploy:
20-
# MyGet (Nested Content feed) Deployment for builds & releases
21-
- provider: NuGet
22-
server: https://www.myget.org/F/umbraco-nested-content/
23-
symbol_server: https://nuget.symbolsource.org/MyGet/umbraco-nested-content
24-
api_key:
25-
secure: Q1/4K8VSwr7BjwmKDTef8y5lOc7S+jK9ELuWy67y6OVRpjxmnF9M3Gfs1kT+ir8x
26-
artifact: /.*\.nupkg/
27-
on:
28-
branch: develop
29-
30-
# MyGet (Umbraco Community feed) Deployment for builds & releases
20+
# MyGet Deployment for builds & releases
3121
- provider: NuGet
3222
server: https://www.myget.org/F/umbraco-packages/
3323
symbol_server: https://nuget.symbolsource.org/MyGet/umbraco-packages
3424
api_key:
35-
secure: Q1/4K8VSwr7BjwmKDTef8y5lOc7S+jK9ELuWy67y6OVRpjxmnF9M3Gfs1kT+ir8x
25+
secure: 36/Ax5O+e6wENlhoTwgvoEBZV3FG4XjF429SNTej2qsGTAL+cdfA1kT/tm1St8vx
3626
artifact: /.*\.nupkg/
3727
on:
3828
branch: develop
3929

4030
# GitHub Deployment for releases
4131
- provider: GitHub
4232
auth_token:
43-
secure: pEozEGTqJutQwOidJU6BTB+Ix0NV4vrUnomhfeqheVz4RNwfxjEYLoqR4XabhlPz
33+
secure: yDxrRTveSScJA35MQTOaLYVjoPKFKl2bHBkG+JMZjiN0r7AfuUCxVU3CgW8Imu4h
4434
artifact: /.*\.zip/ # upload all Zip packages to release assets
4535
draft: false
4636
prerelease: false
@@ -52,7 +42,7 @@ deploy:
5242
- provider: NuGet
5343
server:
5444
api_key:
55-
secure: CGzDKxw4QI/z2VSe9ceiYlIabqGXHolgBgVNWWZjVAJ2V5WLF11IFdlp9r5Qp+Sw
45+
secure: eSLiOXbGVrxSG+X7PV6qTTUZ5VzS9EFj5+EufaWPfd+QXkF6gc8rZ4mGoHIVp/fL
5646
artifact: /.*\.nupkg/
5747
on:
5848
branch: master

build/package.proj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@
2121
<MinUmbracoVersion>7.1.4</MinUmbracoVersion>
2222
<Readme>Nested Content is a list editing property editor for Umbraco 7.1+</Readme>
2323
<AuthorName>Matt Brailsford, Lee Kelleher</AuthorName>
24-
<AuthorUrl>https://github.com/leekelleher/umbraco-nested-content/graphs/contributors</AuthorUrl>
24+
<AuthorUrl>https://github.com/umco/umbraco-nested-content/graphs/contributors</AuthorUrl>
2525
<PackageLicenseName>MIT license</PackageLicenseName>
2626
<PackageLicenseUrl>http://opensource.org/licenses/MIT</PackageLicenseUrl>
27-
<ProjectUrl>https://github.com/leekelleher/umbraco-nested-content</ProjectUrl>
27+
<ProjectUrl>https://github.com/umco/umbraco-nested-content</ProjectUrl>
2828
</PropertyGroup>
2929

3030
<!-- NUGET ONLY PROPERTIES -->
3131
<PropertyGroup>
3232
<PackageId>Our.Umbraco.NestedContent</PackageId>
33-
<NuGetPackageName>Umbraco Nested Content</NuGetPackageName>
34-
<Copyright>Copyright &#169; 2015 Matt Brailsford, Lee Kelleher, Our Umbraco and other contributors</Copyright>
33+
<NuGetPackageName>Nested Content for Umbraco</NuGetPackageName>
34+
<Copyright>Copyright &#169; 2015 Umbrella Inc, Our Umbraco and other contributors</Copyright>
3535
<Owners>Matt Brailsford, Lee Kelleher</Owners>
3636
<IconUrl>https://our.umbraco.org/media/wiki/145710/635623752021571595_ncpng.png</IconUrl>
3737
<Tags>umbraco list editor</Tags>

docs/developers-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ The prevalue editor allows you to configure the following properties.
4646

4747
| Member | Type | Description |
4848
|-----------------|---------|-------------|
49-
| Doc Types | List | Defines a list of doc types to use as data blue prints for this **Nested Content** instance. For each doc type you can provide the alias of the tab you wish to render (first tab is used by default if not set) as well as a template for generating list item labels using the syntax `{{propertyAlias}}`. |
50-
| Min Items | Int | Sets the minimum number of items that should be allowed in the list. If greater than 0, **Nested Content** will pre-populate your list with the minimum amount of allowed items and prevent deleting items below this level. Defaults to 0.
51-
| Max Itemd | Int | Sets the maximum number of items that should be allowed in the list. If greater than 0, **Nested Content** will prevent new items being added to the list above this threshold. Defaults to 0. |
52-
| Confirm Deletes | Boolean | Enabling this will require item deletions to require a confirmation before being deleted. Defaults to TRUE |
49+
| Doc Types | List | Defines a list of doc types to use as data blue prints for this **Nested Content** instance. For each doc type you can provide the alias of the tab you wish to render (first tab is used by default if not set) as well as a template for generating list item labels using the syntax `{{propertyAlias}}`. If you would like to include the index position in the label, you can use `{{$index}}`. |
50+
| Min Items | Integer | Sets the minimum number of items that should be allowed in the list. If greater than `0`, **Nested Content** will pre-populate your list with the minimum amount of allowed items and prevent deleting items below this level. Defaults to `0`.
51+
| Max Items | Integer | Sets the maximum number of items that should be allowed in the list. If greater than `0`, **Nested Content** will prevent new items being added to the list above this threshold. Defaults to `0`. |
52+
| Confirm Deletes | Boolean | Enabling this will require item deletions to require a confirmation before being deleted. Defaults to `true`. |
5353
| Show Icons | Boolean | Enabling this will display the items doc type icon next to the name in the **Nested Content** list. |
5454
| Hide Label | Boolean | Enabling this will hide the property editors label and expand the **Nested Content** property editor to the full with of the editor window. |
5555

src/Our.Umbraco.NestedContent.sln

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
2-
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.31101.0
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio 14
3+
VisualStudioVersion = 14.0.25420.1
54
MinimumVisualStudioVersion = 10.0.40219.1
65
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{CEE9961C-D747-40CD-B0B2-868D6B46833E}"
76
ProjectSection(SolutionItems) = preProject

src/Our.Umbraco.NestedContent/Converters/NestedContentValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public override object ConvertDataToSource(PublishedPropertyType propertyType, o
2121
{
2222
try
2323
{
24-
return propertyType.ConvertPropertyToNestedContent(source);
24+
return propertyType.ConvertPropertyToNestedContent(source, preview);
2525
}
2626
catch (Exception e)
2727
{

src/Our.Umbraco.NestedContent/Converters/SingleNestedContentValueConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public override object ConvertDataToSource(PublishedPropertyType propertyType, o
2020
{
2121
try
2222
{
23-
return propertyType.ConvertPropertyToNestedContent(source);
23+
return propertyType.ConvertPropertyToNestedContent(source, preview);
2424
}
2525
catch (Exception e)
2626
{

src/Our.Umbraco.NestedContent/Extensions/PublishedPropertyTypeExtensions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static bool IsSingleNestedContentProperty(this PublishedPropertyType publ
3636
int.TryParse(preValueDictionary["maxItems"], out maxItems) && maxItems == 1;
3737
}
3838

39-
public static object ConvertPropertyToNestedContent(this PublishedPropertyType propertyType, object source)
39+
public static object ConvertPropertyToNestedContent(this PublishedPropertyType propertyType, object source, bool preview)
4040
{
4141
using (DisposableTimer.DebugDuration<PublishedPropertyType>(string.Format("ConvertPropertyToNestedContent ({0})", propertyType.DataTypeId)))
4242
{
@@ -78,7 +78,7 @@ public static object ConvertPropertyToNestedContent(this PublishedPropertyType p
7878
var propType = publishedContentType.GetPropertyType(jProp.Key);
7979
if (propType != null)
8080
{
81-
properties.Add(new DetachedPublishedProperty(propType, jProp.Value));
81+
properties.Add(new DetachedPublishedProperty(propType, jProp.Value, preview));
8282
}
8383
}
8484

@@ -98,7 +98,8 @@ public static object ConvertPropertyToNestedContent(this PublishedPropertyType p
9898
publishedContentType,
9999
properties.ToArray(),
100100
containerNode,
101-
i));
101+
i,
102+
preview));
102103
}
103104

104105
if (propertyType.IsSingleNestedContentProperty())

src/Our.Umbraco.NestedContent/Our.Umbraco.NestedContent.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@
243243
</ItemGroup>
244244
<ItemGroup />
245245
<ItemGroup>
246+
<Content Include="Web\UI\App_Plugins\NestedContent\Js\nestedcontent.filters.js" />
246247
<Content Include="Web\UI\App_Plugins\NestedContent\Js\nestedcontent.controllers.js" />
247248
<Content Include="Web\UI\App_Plugins\NestedContent\Js\nestedcontent.directives.js" />
248249
<Content Include="Web\UI\App_Plugins\NestedContent\Js\nestedcontent.resources.js" />

0 commit comments

Comments
 (0)