Releases: skybrud/Skybrud.Umbraco.GridData
Skybrud.Umbraco.GridData v3.0.2
New release for Umbraco 8. This release will not work with Umbraco 7.
Installation
Changelog
-
Introduced new
IGridElementConverter
interface (see 5b08a79)
The interface and related logic adds a way to get the searchable text for controls that may holdIPublishedElement
values - eg. when using DTGE. -
Added generic support for
GridControl
andGridEditor
(see c77d7cf and 8f28276)
Backported from the V9 version of this package.For editor that has a configuration, the returned type is now
GridEditor<TConfig>
instead of justGridEditor
, which results in theConfig
property being of typeTConfig
ofIGridEditorConfig
.GridEditor<TConfig>
extends theGridEditor
class, andTConfig
must implement theIGridEditorConfig
to ensure this doesn't cause any breaking changes.In the same way, controls will now be returned as
GridControl<TValue>
if is has a value - or evenGridControl<TValue, TConfig>
if the editor of the control also has a configuration.GridControl<TValue, TConfig>
extendsGridControl<TValue>
which extendsGridControl
, andTValue
must implement theIGridControlValue
interface.
Skybrud.Umbraco.GridData v4.0.0-alpha001
First alpha release for Umbraco 9. This release will not work on older versions of Umbraco.
Installation
Via NuGet:
.NET CLI:
dotnet add package Skybrud.Umbraco.GridData --version 4.0.0-alpha001
Package Manager:
Install-Package Skybrud.Umbraco.GridData -Version 4.0.0-alpha001
Skybrud.Umbraco.GridData v3.0.1
New release for Umbraco 8. This release will not work with Umbraco 7.
Installation
Changelog
-
Updated the Skybrud.Essentials dependency (see 9589b03)
Shouldn't really affect the grid package, but new release = updated dependency. -
Version 3 is now available as an Umbraco package (see 88b2391)
While it's still very much recommended to install via NuGet, an Umbraco 8 package is now available as an alternative.
Skybrud.Umbraco.GridData v3.0.0
First stable release for Umbraco 8. This release will not work with Umbraco 7.
Installation
Changelog
Skybrud.Umbraco.GridData v2.0.7
New release for Umbraco 7.
Installation
Changelog
-
Added extra null value check to the
GetSearchableText
method (see #26 and 14a1fac)
The value of a control may for various reasons be null, but theGetSearchableText
didn't check for this. -
GetSearchableText
method should replace HTML with new line instead of an empty string (see #25 and 5fb9267)
This fix ensures that an HTML value like<strong>hello</strong><strong>world</strong>
is converted tohello\nworld
instead ofhelloworld
.
Skybrud.Umbraco.GridData v3.0.0-beta004
Installation
Changelog
-
Updated the GridControlEmbedValue class due to breaking changes in Umbraco 8.2 (see #33)
In Umbraco 8.2, the way embed values are stored changed, resulting in a breaking change in Umbraco and thereby also in this package. The fix adresses those changes, but also ensures backwards compatibility with older values from Umbraco 8.1 and before.Thanks to @ArnoldV for finding the issue and submitting a PR 👍
Details
In Umbraco 8.1, the value of an embed grid control would be saved as a string value - eg.:
{ "value": "<iframe width=\"360\" height=\"203\" src=\"https://www.youtube.com/embed/VTnDYxwhSaI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>", "editor": { "alias": "embed" } }
In Umbraco 8.2 and newer, the value is instead saved as a JSON object with more information about the embedded resource:
{ "value": { "constrain": true, "height": 240, "width": 360, "url": "https://www.youtube.com/watch?v=VTnDYxwhSaI", "info": "", "preview": "<iframe width=\"360\" height=\"203\" src=\"https://www.youtube.com/embed/VTnDYxwhSaI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen></iframe>" }, "editor": { "alias": "embed" } }
- Fixed an issue with
GridControlHtmlValue
andGetSearchableText
(see 41d282c)
Previously, any HTML elements in the value would be replaced by an empty string. In some cases, this could cause two words to be joined as one - eg.hello<br />world
would becomehelloworld
. With this release, HTML elements are instead replaced by a space, ensuringhello<br />world
is instead converted intohello world
.
Skybrud.Umbraco.GridData v3.0.0-beta003
Installation
Changelog
- Grid editor configuration is now injected into the JSON like in the V7 package - thanks to @skttl (see 1c6bee4 and 21ab290)
A version check from the V7 package resulted in the grid editor configuration not being injected into the JSON like it used to in the V7 package. Thanks to the PR from Søren this now works in the V8 package as well.
Skybrud.Umbraco.GridData v3.0.0-beta002
Installation
Changelog
Skybrud.Umbraco.GridData v3.0.0-beta001
Installation
Changelog
- Updated the package to build against Umbraco 8 DLLs instead of Umbraco 7 (see 6499f77).
Skybrud.Umbraco.GridData v2.0.6
Installation
Changelog
- Fixed an issue with the
GetSearchableText
methods as values from two controls could be added two the same line without any spacing (see 1d1b283).