0 votes

Limbo Boolean

This package adds a new boolean property editor to Umbraco 8. Using a toggl input, users will be able to set the value to either true or false.

But why?

Umbraco already has a built-in property for a boolean type, so why add another one?

The build-in property editor has a Initial state option (alias is default) for the data type, but it doesn't apply retroactively to content that doesn't already have a saved value, although one could expect this behavior.

Ideally something like this should be added back to into the Umbraco source code (there is even an issue for it), but for now, this package adds a new property editor that has the expected behavior for the default value / initial state.

Installation

Currently only available for Umbraco 8, the package can be installed using one of the methods below:

Install via NuGet

This is the recommend approach, as you install the NuGet Package in your Visual Studio project, and NuGet takes care of the rest.

Umbraco 10
Latest release for Umbraco 10 is v3.0.0:

Install-Package Limbo.Umbraco.Boolean -Version 3.0.0

Umbraco 9
Latest release for Umbraco 9 is v2.0.0:

Install-Package Limbo.Umbraco.Boolean -Version 2.0.0

Umbraco 8

Latest release for Umbraco 8 is v1.0.1:

Install-Package Limbo.Umbraco.Boolean -Version 1.0.1

Usage

The package works similar to the build-in Toggle property editor, but with the addition that the default value / initial state works retroatively for properties that doesn't already have a value (eg. when adding a new property to an existing content type). The property editor will not change the value of properties that already have a value.

Screenshots

NuGet install instructions for Umbraco 9+

dotnet add package Limbo.Umbraco.Boolean

Package owner

Anders Bjerner

Anders Bjerner

Anders has 2995 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: Anders Bjerner
  • Created: 23/11/2021
  • Current version 3.0.0
  • .NET version 4.7.2
  • License MIT
  • Downloads on Our: 60
  • Downloads on NuGet: 13.8K
  • Total downloads : 13.9K