Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

Commit fb22f57

Browse files
authored
Merge pull request #51 from umco/develop
Release 0.3.0
2 parents 0ac8792 + 2cb81db commit fb22f57

26 files changed

+115
-230
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ If you prefer, you can compile Doc Type Grid Editor 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-doc-type-grid-editor.git umbraco-doc-type-grid-editor
42+
git clone https://github.com/umco/umbraco-doc-type-grid-editor.git umbraco-doc-type-grid-editor
4343
cd umbraco-doc-type-grid-editor
4444
.\build.cmd
4545

@@ -60,6 +60,7 @@ Please be aware that not all property-editors will work within Doc Type Grid Edi
6060
* Upload (default Umbraco core)
6161
* Image Cropper (default Umbraco core)
6262
* Macro Container (default Umbraco core)
63+
* Tags (default Umbraco core)
6364

6465
---
6566

@@ -77,7 +78,7 @@ Anyone and everyone is welcome to contribute. Please take a moment to review the
7778
Have a question?
7879

7980
* [Doc Type Grid Editor Forum](https://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor/doc-type-grid-editor-feedback/) on Our Umbraco
80-
* [Raise an issue](https://github.com/leekelleher/umbraco-doc-type-grid-editor/issues) on GitHub
81+
* [Raise an issue](https://github.com/umco/umbraco-doc-type-grid-editor/issues) on GitHub
8182

8283

8384
## Dev Team
@@ -92,6 +93,6 @@ Have a question?
9293

9394
## License
9495

95-
Copyright © 2015 Umbrella Inc, Our Umbraco and [other contributors](https://github.com/leekelleher/umbraco-doc-type-grid-editor/graphs/contributors)
96+
Copyright © 2014 Umbrella Inc, Our Umbraco and [other contributors](https://github.com/umco/umbraco-doc-type-grid-editor/graphs/contributors)
9697

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

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# version format
2-
version: 0.2.1.{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

build/package.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<!-- NUGET ONLY PROPERTIES -->
3131
<PropertyGroup>
3232
<PackageId>Our.Umbraco.DocTypeGridEditor</PackageId>
33-
<NuGetPackageName>Umbraco Doc Type Grid Editor</NuGetPackageName>
33+
<NuGetPackageName>Doc Type Grid Editor for Umbraco</NuGetPackageName>
3434
<Copyright>Copyright &#169; 2015 Matt Brailsford, Lee Kelleher</Copyright>
3535
<Owners>Matt Brailsford, Lee Kelleher</Owners>
3636
<IconUrl>https://our.umbraco.org/media/wiki/145708/635623742802070736_dtgepng.png</IconUrl>

docs/developers-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,5 +179,5 @@ By inheriting from the `DocTypeGridEditorSurfaceController` base class, you'll a
179179
180180
### Useful Links
181181
182-
* [Source Code](https://github.com/leekelleher/umbraco-doc-type-grid-editor)
182+
* [Source Code](https://github.com/umco/umbraco-doc-type-grid-editor)
183183
* [Our Umbraco Project Page](http://our.umbraco.org/projects/backoffice-extensions/doc-type-grid-editor)

src/.nuget/NuGet.targets

Lines changed: 0 additions & 144 deletions
This file was deleted.

src/Our.Umbraco.DocTypeGridEditor.sln

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2013
4-
VisualStudioVersion = 12.0.21005.1
3+
# Visual Studio 14
4+
VisualStudioVersion = 14.0.25420.1
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Our.Umbraco.DocTypeGridEditor", "Our.Umbraco.DocTypeGridEditor\Our.Umbraco.DocTypeGridEditor.csproj", "{4BD1DB40-1B39-4966-8740-D6A39D658598}"
77
EndProject
88
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{CEE9961C-D747-40CD-B0B2-868D6B46833E}"
99
ProjectSection(SolutionItems) = preProject
1010
.nuget\NuGet.Config = .nuget\NuGet.Config
11-
.nuget\NuGet.exe = .nuget\NuGet.exe
12-
.nuget\NuGet.targets = .nuget\NuGet.targets
1311
EndProjectSection
1412
EndProject
1513
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{D588B45D-9E67-4136-8271-2B8724C8165F}"
@@ -31,6 +29,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Package", "Build Pack
3129
..\build\readme.txt = ..\build\readme.txt
3230
EndProjectSection
3331
EndProject
32+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8412A31B-D80C-42DE-9589-4BD08F43F86B}"
33+
EndProject
3434
Global
3535
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3636
Debug|Any CPU = Debug|Any CPU
@@ -45,4 +45,9 @@ Global
4545
GlobalSection(SolutionProperties) = preSolution
4646
HideSolutionNode = FALSE
4747
EndGlobalSection
48+
GlobalSection(NestedProjects) = preSolution
49+
{CEE9961C-D747-40CD-B0B2-868D6B46833E} = {8412A31B-D80C-42DE-9589-4BD08F43F86B}
50+
{D588B45D-9E67-4136-8271-2B8724C8165F} = {8412A31B-D80C-42DE-9589-4BD08F43F86B}
51+
{42CE1449-272B-453B-B162-4558FD38BF41} = {8412A31B-D80C-42DE-9589-4BD08F43F86B}
52+
EndGlobalSection
4853
EndGlobal

src/Our.Umbraco.DocTypeGridEditor/Bootstrap.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
using Our.Umbraco.DocTypeGridEditor.Web.Attributes;
33
using Our.Umbraco.DocTypeGridEditor.Web.Mvc;
44
using Umbraco.Core;
5+
using Umbraco.Core.Events;
6+
using Umbraco.Core.Models;
57
using Umbraco.Core.Services;
68

79
namespace Our.Umbraco.DocTypeGridEditor
@@ -20,7 +22,7 @@ protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplica
2022
DataTypeService.Saved += ExpireCache;
2123
}
2224

23-
private void ExpireCache(IDataTypeService sender, global::Umbraco.Core.Events.SaveEventArgs<global::Umbraco.Core.Models.IDataTypeDefinition> e)
25+
private void ExpireCache(IDataTypeService sender, SaveEventArgs<IDataTypeDefinition> e)
2426
{
2527
foreach (var dataType in e.SavedEntities)
2628
{
@@ -29,4 +31,4 @@ private void ExpireCache(IDataTypeService sender, global::Umbraco.Core.Events.Sa
2931
}
3032
}
3133
}
32-
}
34+
}

src/Our.Umbraco.DocTypeGridEditor/Extensions/ContentTypeServiceExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ public static string GetAliasByGuid(this IContentTypeService contentTypeService,
1414
.ExecuteScalar<string>("SELECT [cmsContentType].[alias] FROM [cmsContentType] INNER JOIN [umbracoNode] ON [cmsContentType].[nodeId] = [umbracoNode].[id] WHERE [umbracoNode].[uniqueID] = @0", id));
1515
}
1616
}
17-
}
17+
}

src/Our.Umbraco.DocTypeGridEditor/Extensions/ViewEnginesCollectionExtensions.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@ namespace Our.Umbraco.DocTypeGridEditor.Extensions
55
{
66
internal static class ViewEnginesCollectionExtensions
77
{
8-
public static bool ViewExists(this ViewEngineCollection viewEngines,
8+
public static bool ViewExists(
9+
this ViewEngineCollection viewEngines,
910
ControllerContext controllerContext,
1011
string viewName, bool isPartial = false)
1112
{
1213
var result = !isPartial
1314
? viewEngines.FindView(controllerContext, viewName, null)
1415
: viewEngines.FindPartialView(controllerContext, viewName);
16+
1517
if (result.View != null)
1618
return true;
1719

18-
LogHelper.Warn<Bootstrap>("No view file found with the name " + viewName);
20+
LogHelper.Info<ViewEngineCollection>("[DocTypeGridEditor] No view file found with the name '{0}'", () => viewName);
21+
1922
return false;
2023
}
2124
}
22-
}
25+
}

src/Our.Umbraco.DocTypeGridEditor/Helpers/DocTypeGridEditorHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ private static IPublishedContent ConvertValue(string id, string contentTypeAlias
7878
/* Now that we have the DB stored value, we actually need to then convert it into it's
7979
* XML serialized state as expected by the published property by calling ConvertDbToString
8080
*/
81-
var propType2 = contentType.CompositionPropertyTypes.Single(x => x.Alias == propType.PropertyTypeAlias);
81+
var propType2 = contentType.CompositionPropertyTypes.Single(x => x.Alias.InvariantEquals(propType.PropertyTypeAlias));
8282

8383
Property prop2 = null;
8484
try
@@ -93,7 +93,7 @@ private static IPublishedContent ConvertValue(string id, string contentTypeAlias
9393
}
9494
catch(Exception ex)
9595
{
96-
LogHelper.Error<DocTypeGridEditorHelper>("Error creating Property object.", ex);
96+
LogHelper.Error<DocTypeGridEditorHelper>("[DocTypeGridEditor] Error creating Property object.", ex);
9797
}
9898

9999
if (prop2 != null)

src/Our.Umbraco.DocTypeGridEditor/Helpers/XmlHelper.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ public static T GetAttributeValueFromNode<T>(XmlNode node, string attributeName,
2727
}
2828
return defaultValue;
2929
}
30-
31-
3230
}
33-
}
31+
}

src/Our.Umbraco.DocTypeGridEditor/Models/DetachedPublishedContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ public override int Level
152152
get { return 0; }
153153
}
154154
}
155-
}
155+
}

src/Our.Umbraco.DocTypeGridEditor/Models/DetachedPublishedProperty.cs

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,32 @@ public DetachedPublishedProperty(PublishedPropertyType propertyType, object valu
2929
_xpathValue = new Lazy<object>(() => _propertyType.ConvertSourceToXPath(_sourceValue.Value, _isPreview));
3030
}
3131

32-
public string PropertyTypeAlias {
32+
public string PropertyTypeAlias
33+
{
3334
get
3435
{
3536
return _propertyType.PropertyTypeAlias;
3637
}
3738
}
3839

39-
public bool HasValue
40+
public bool HasValue
4041
{
4142
get { return DataValue != null && DataValue.ToString().Trim().Length > 0; }
4243
}
4344

44-
public object DataValue { get { return _rawValue; } }
45-
public object Value { get { return _objectValue.Value; } }
46-
public object XPathValue { get { return _xpathValue.Value; } }
45+
public object DataValue
46+
{
47+
get { return _rawValue; }
48+
}
49+
50+
public object Value
51+
{
52+
get { return _objectValue.Value; }
53+
}
54+
55+
public object XPathValue
56+
{
57+
get { return _xpathValue.Value; }
58+
}
4759
}
48-
}
60+
}

0 commit comments

Comments
 (0)