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

Commit 99ebbf7

Browse files
authored
Merge pull request #74 from leekelleher/develop
Preparing for v0.3.0 release
2 parents 8f6a98a + bdb8f5c commit 99ebbf7

26 files changed

+423
-180
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ _ReSharper.*
99
Thumbs.db
1010
.DS_Store
1111
*.log
12+
.vs
1213

1314
artifacts/
1415
src/packages/*/**

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ Guidelines for bug reports:
3636
2. **Check if the issue has been fixed** — try to reproduce it using the
3737
latest `master` or development branch in the repository.
3838

39-
3. **Isolate the problem** — create a [reduced test
40-
case](http://css-tricks.com/6263-reduced-test-cases/) and a live example.
39+
3. **Isolate the problem** — create a reduced test
40+
case and a live example.
4141

4242
A good bug report shouldn't leave others needing to chase you up for more
4343
information. Please try to be as detailed as possible in your report. What is

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To [install from NuGet](https://www.nuget.org/packages/Our.Umbraco.NestedContent
2929

3030
PM> Install-Package Our.Umbraco.NestedContent
3131

32-
We also have a [MyGet package repository](https://www.myget.org/gallery/umbraco-nested-content) - for bleeding-edge / development releases.
32+
We also have a [MyGet package repository](https://www.myget.org/gallery/umbraco-packages) - for bleeding-edge / development releases.
3333

3434
#### Manual build
3535

@@ -57,8 +57,12 @@ A PDF download is also available: [Nested Content - Developers Guide v1.0.pdf](d
5757

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

60-
* Upload (default Umbraco core)
60+
* Checkbox List (default Umbraco core)
61+
* Image Cropper (default Umbraco core)
6162
* 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)
6266

6367
---
6468

appveyor.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# version format
2-
version: 0.2.0.{build}
2+
version: 0.3.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
66
init:
77
- set UMBRACO_PACKAGE_PRERELEASE_SUFFIX=
88

9+
cache:
10+
- src\packages -> **\packages.config # preserve "packages" directory in the root of build folder but will reset it if packages.config is modified
11+
912
build_script:
1013
- build-appveyor.cmd
1114

@@ -14,7 +17,7 @@ artifacts:
1417
- path: artifacts\*.zip
1518

1619
deploy:
17-
# MyGet Deployment for builds & releases
20+
# MyGet (Nested Content feed) Deployment for builds & releases
1821
- provider: NuGet
1922
server: https://www.myget.org/F/umbraco-nested-content/
2023
symbol_server: https://nuget.symbolsource.org/MyGet/umbraco-nested-content
@@ -24,7 +27,17 @@ deploy:
2427
on:
2528
branch: develop
2629

27-
# GitHub Deployment for releases
30+
# MyGet (Umbraco Community feed) Deployment for builds & releases
31+
- provider: NuGet
32+
server: https://www.myget.org/F/umbraco-packages/
33+
symbol_server: https://nuget.symbolsource.org/MyGet/umbraco-packages
34+
api_key:
35+
secure: Q1/4K8VSwr7BjwmKDTef8y5lOc7S+jK9ELuWy67y6OVRpjxmnF9M3Gfs1kT+ir8x
36+
artifact: /.*\.nupkg/
37+
on:
38+
branch: develop
39+
40+
# GitHub Deployment for releases
2841
- provider: GitHub
2942
auth_token:
3043
secure: pEozEGTqJutQwOidJU6BTB+Ix0NV4vrUnomhfeqheVz4RNwfxjEYLoqR4XabhlPz
@@ -35,7 +48,7 @@ deploy:
3548
branch: master
3649
appveyor_repo_tag: true # deploy on tag push only
3750

38-
# NuGet Deployment for releases
51+
# NuGet Deployment for releases
3952
- provider: NuGet
4053
server:
4154
api_key:

build/install.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
param($installPath, $toolsPath, $package, $project)
2+
3+
$appPluginsFolder = $project.ProjectItems | Where-Object { $_.Name -eq "App_Plugins" }
4+
$nestedContentFolder = $appPluginsFolder.ProjectItems | Where-Object { $_.Name -eq "NestedContent" }
5+
6+
if (!$nestedContentFolder)
7+
{
8+
$newPackageFiles = "$installPath\Content\App_Plugins\NestedContent"
9+
10+
$projFile = Get-Item ($project.FullName)
11+
$projDirectory = $projFile.DirectoryName
12+
$projectPath = Join-Path $projDirectory -ChildPath "App_Plugins"
13+
$projectPathExists = Test-Path $projectPath
14+
15+
if ($projectPathExists) {
16+
Write-Host "Updating Nested Content App_Plugin files using PS as they have been excluded from the project"
17+
Copy-Item $newPackageFiles $projectPath -Recurse -Force
18+
}
19+
}

build/package.proj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
<PluginFiles Include="$(CoreProjectDir)\Web\UI\**\*.*" />
124124
<PackageFile Include="$(MSBuildProjectDirectory)\package.xml" />
125125
<NuSpecFile Include="$(MSBuildProjectDirectory)\package.nuspec" />
126+
<InstallPsFile Include="$(MSBuildProjectDirectory)\install.ps1" />
126127
</ItemGroup>
127128
<Copy SourceFiles="@(BinFiles)" DestinationFolder="$(BuildUmbDir)\bin" />
128129
<Copy SourceFiles="@(PackageFile)" DestinationFolder="$(BuildUmbDir)" />
@@ -132,6 +133,7 @@
132133
<Copy SourceFiles="@(PluginFiles)" DestinationFiles="@(PluginFiles->'$(BuildNuGetDir)\Content\%(RecursiveDir)%(Filename)%(Extension)')" />
133134
<Copy SourceFiles="@(SrcFiles)" DestinationFiles="@(SrcFiles->'$(BuildNuGetDir)\src\%(RecursiveDir)%(Filename)%(Extension)')" />
134135
<Copy SourceFiles="@(NuSpecFile)" DestinationFolder="$(BuildNuGetDir)" />
136+
<Copy SourceFiles="@(InstallPsFile)" DestinationFolder="$(BuildNuGetDir)\tools" />
135137
</Target>
136138

137139
<!-- MANIFEST UMBRACO -->

build/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<version>0.0.0</version>
77
<license url=""></license>
88
<url></url>
9-
<requirements>
9+
<requirements type="strict">
1010
<major>0</major>
1111
<minor>0</minor>
1212
<patch>0</patch>

docs/assets/img/screenshot-01.png

-566 Bytes
Loading
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
-- # Nested Content SQL scripts
2+
3+
-- ## Renaming a DocType alias
4+
5+
UPDATE
6+
cmsPropertyData
7+
SET
8+
dataNtext = CAST(REPLACE(CAST(dataNtext AS nvarchar(max)), '"ncContentTypeAlias":"OLD_ALIAS"', '"ncContentTypeAlias":"NEW_ALIAS"') AS ntext)
9+
WHERE
10+
dataNtext LIKE '%"ncContentTypeAlias":"OLD_ALIAS"%'
11+
;
12+
13+
UPDATE
14+
cmsDataTypePreValues
15+
SET
16+
[value] = CAST(REPLACE(CAST([value] AS nvarchar(max)), '"ncAlias": "OLD_ALIAS"', '"ncAlias": "NEW_ALIAS"') AS ntext)
17+
WHERE
18+
[value] LIKE '%"ncAlias": "OLD_ALIAS"%'
19+
;
20+
21+
-- ## Renaming a property alias
22+
23+
UPDATE
24+
cmsPropertyData
25+
SET
26+
dataNtext = CAST(REPLACE(CAST(dataNtext AS nvarchar(max)), ',"OLD_ALIAS":', ',"NEW_ALIAS":') AS ntext)
27+
WHERE
28+
dataNtext LIKE '%"ncContentTypeAlias":"CONTENT_TYPE_ALIAS"%'
29+
;

src/Our.Umbraco.NestedContent.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Package", "Build Pack
1616
..\appveyor.yml = ..\appveyor.yml
1717
..\build-appveyor.cmd = ..\build-appveyor.cmd
1818
..\build.cmd = ..\build.cmd
19+
..\build\install.ps1 = ..\build\install.ps1
1920
..\build\package.nuspec = ..\build\package.nuspec
2021
..\build\package.proj = ..\build\package.proj
2122
..\build\package.xml = ..\build\package.xml

0 commit comments

Comments
 (0)