XperienceCommunity.Bynder
1.1.0
See the version list below for details.
dotnet add package XperienceCommunity.Bynder --version 1.1.0
NuGet\Install-Package XperienceCommunity.Bynder -Version 1.1.0
<PackageReference Include="XperienceCommunity.Bynder" Version="1.1.0" />
paket add XperienceCommunity.Bynder --version 1.1.0
#r "nuget: XperienceCommunity.Bynder, 1.1.0"
// Install XperienceCommunity.Bynder as a Cake Addin #addin nuget:?package=XperienceCommunity.Bynder&version=1.1.0 // Install XperienceCommunity.Bynder as a Cake Tool #tool nuget:?package=XperienceCommunity.Bynder&version=1.1.0
XperienceCommunity.Bynder
Description
This plugin enhances Xperience by Kentico with a form control that allows users to select assets from the DAM Bynder.
Screenshots
Library Version Matrix
Xperience Version | Library Version |
---|---|
>= 29.2.0 | 1.0.0 |
>= 29.2.0 | 1.1.0 |
Dependencies
Package Installation
Add the package to your application using the .NET CLI
dotnet add package XperienceCommunity.Bynder
Quick Start
Widget properties
C# data type: IEnumerable<BynderAsset>
Form component attribute: BynderSelectorComponent
Attribute configuration properties:
- MinimumAssets - sets the minimum number of selected assets, default value is 0
- MaximumAssets - sets the maximum number of selected assets, default value is 0 (unlimited)
- AssetTypes - Allows to limit allowed asset types, see the AssetTypeConsts
Example:
public class BynderImageWidgetProperties : IWidgetProperties
{
[BynderSelectorComponent(AllowedTypes = new[] { AssetTypeConsts.Image }, MinimumAssets = 1, MaximumAssets = 3)]
public IEnumerable<BynderAsset> BynderImage { get; set; }
}
Content type fields
Data type: bynderassets
Form component: Bynder selector form component
Form component configuration:
- MinimumAssets - sets the minimum number of selected assets, default value is 0
- MaximumAssets - sets the maximum number of selected assets, default value is 0 (unlimited)
- AssetType - Allows to limit allowed asset types, supports single select only
Full Instructions
C# data model
public class BynderAsset
{
public string Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Url { get; set; }
public string[] Extensions { get; set; }
public string[] Tags { get; set; }
public string DatabaseId { get; set; }
public string Type { get; set; }
public BynderAssetFiles Files { get; set; }
}
public class BynderAssetFiles : Dictionary<string, BynderAssetFile>
{
public BynderAssetFile Original => this["original"];
public BynderAssetFile Thumbnail => this["thumbnail"];
public BynderAssetFile Mini => this["mini"];
public BynderAssetFile WebImage => this["webImage"];
}
public class BynderAssetFile
{
public string Url { get; set; }
public int? Width { get; set; }
public int? Height { get; set; }
public int? FileSize { get; set; }
}
AssetTypeConsts
This static class contains constants with all possible values for limiting allowed asset types.
public static class AssetTypeConsts
{
public const string Image = "IMAGE";
public const string Document = "DOCUMENT";
public const string Video = "VIDEO";
public const string Audio = "AUDIO";
}
See more info on Bynder Docs
DancingGoat widget example
See the Bynder image widget implemented in the DancingGoat site BynderImageWidget
Contributing
Feel free to submit issues or pull requests to the repository.
License
Distributed under the MIT License. See LICENSE.md
for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- kentico.xperience.admin (>= 29.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.