Bonsai.FlexibleLinks.Backoffice
1.0.0
dotnet add package Bonsai.FlexibleLinks.Backoffice --version 1.0.0
NuGet\Install-Package Bonsai.FlexibleLinks.Backoffice -Version 1.0.0
<PackageReference Include="Bonsai.FlexibleLinks.Backoffice" Version="1.0.0" />
paket add Bonsai.FlexibleLinks.Backoffice --version 1.0.0
#r "nuget: Bonsai.FlexibleLinks.Backoffice, 1.0.0"
// Install Bonsai.FlexibleLinks.Backoffice as a Cake Addin
#addin nuget:?package=Bonsai.FlexibleLinks.Backoffice&version=1.0.0
// Install Bonsai.FlexibleLinks.Backoffice as a Cake Tool
#tool nuget:?package=Bonsai.FlexibleLinks.Backoffice&version=1.0.0
Flexible Links - for Umbraco 10
This package adds a new data type named "Flexible Links" to the umbraco backoffice. It allows users to add multiple links, similar to the built in "Multi Url Picker" data type, but it can be extended to accomodate additional kinds of links for things like modals, anchor links, etc. Out of the box it supports the following link types.
- Anchor - Used to create hash based links like "#example" to link to sections of the current page.
- Content - Used to select content from umbraco content section.
- Media - Used to select media from umbraco media section.
- External - Used to manually enter urls
It can be configured to allow one or many links. The label portion of the control can also be removed, which is useful for cases where the link is not text.
Adding new links types
To add a new picker, all you need to do is implement the IFlexibleLinkType interface, making sure that the Key guid is unique to the picker. There are also a couple base classes than can be used to speed up creation of the picker.
- BaseManualLinkType - This is used for links where the url is manually entered. It's used for the Anchor and External link types out of the box.
- BasePickedLinkType - This is for pickers that use umbraco content or media. It's used by the Content and Media link types out of the box.
Configuring the data type
There are 3 key pieces to the configuration of the Flexible Links data type.
- Allow Multiple - When active, this will allow multiple links to be selected.
- Disable Labels - This removes the label piece of the control. This is useful for when the links are images or icons rather than text.
- Pickers - This is a list of all the pickers that have been installed. By default they are disabled. When a picker is enabled, it will also reveal any settings configured in the Settings property of the picker, as shown below.
Using the data type
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
- Bonsai.FlexibleLinks.Core (>= 1.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 203 | 9/22/2022 |
- initial release