Our.Umbraco.ConditionalDisplayers 3.0.1-pre001

This is a prerelease version of Our.Umbraco.ConditionalDisplayers.
There is a newer version of this package available.
See the version list below for details.
dotnet add package Our.Umbraco.ConditionalDisplayers --version 3.0.1-pre001                
NuGet\Install-Package Our.Umbraco.ConditionalDisplayers -Version 3.0.1-pre001                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Our.Umbraco.ConditionalDisplayers" Version="3.0.1-pre001" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Our.Umbraco.ConditionalDisplayers --version 3.0.1-pre001                
#r "nuget: Our.Umbraco.ConditionalDisplayers, 3.0.1-pre001"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Our.Umbraco.ConditionalDisplayers as a Cake Addin
#addin nuget:?package=Our.Umbraco.ConditionalDisplayers&version=3.0.1-pre001&prerelease

// Install Our.Umbraco.ConditionalDisplayers as a Cake Tool
#tool nuget:?package=Our.Umbraco.ConditionalDisplayers&version=3.0.1-pre001&prerelease                

Conditional Displayers

This is an Umbraco package. It implements a checkbox and dropdown datatype editors that work like the core ones (in fact they are based in the same code), but allows to hide or display other properties in the same Document Type.

Installation

Nuget

NuGet

Run this form your Package Manager Console in Visual Studio:

PM> Install-Package Our.Umbraco.ConditionalDisplayers

Umbraco Package

https://our.umbraco.com/packages/backoffice-extensions/conditional-displayers/

Manually

Download the code and copy it into you App_Plugin folder.

Configuration

Checkbox

Create a new DataType and select 'Checkbox Conditional Displayer' as the Property Editor.

-Default value: select the value that the checkbox will have by default: checked/unchecked.

-Show if checked: enter the aliases of those properties you want to show when the checkbox is checked. Note: these properties <b>will be hidden</b> if it's unchecked.

-Show if unchecked: enter the aliases of those properties you want to show when the checkbox is unchecked. Note: these properties <b>will be hidden</b> if it's checked.

Create a new DataType and select 'Dropdown Conditional Displayer' as the Property Editor.

You'll have to create a list of options that the dropdown will display. In addition to the value you have two other inputs used to show or hide one or more properties.

-Show if selected: enter the aliases of those properties you want to show when the checkbox is selected. Note: these properties <b>won't be hidden</b> when this value unselected. -Hide if selected: enter the aliases of those properties you want to show when the checkbox is selected. Note: these properties <b>won't be hidden</b> when this value unselected.

<strong>Note:</strong> the difference of behaviour between the checkbox and the dropdown input logic can be a bit confusing, but after a lot of testing it seems the most flexible way to combine the different possibilities when configuring them. I'm open to other behaviour suggestions.

Getting the properties values

The Conditional Displayers are normal property editors so you can access their values as with any other property (strongly typed model, GetPropertyValue,...)

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
3.4.0 70,621 5/8/2023
3.3.0-beta3 140 4/28/2023
3.3.0-beta1 135 4/20/2023
3.2.4 6,327 3/7/2023
3.2.3 256 3/7/2023
3.2.2 245 3/7/2023
3.2.1 6,872 12/5/2022
3.2.0 361 12/5/2022
3.1.0 27,646 7/23/2022
3.0.3 665 7/13/2022
3.0.2 10,646 1/18/2022
3.0.1-pre002 229 12/31/2021
3.0.1-pre001 200 12/30/2021
3.0.0 2,888 11/27/2021
3.0.0-beta001 298 5/3/2021
2.3.4 42,722 9/19/2020
2.3.2 6,337 6/20/2020
2.3.1 4,744 3/11/2020
2.3.0 7,260 11/9/2019
2.2.1 761 10/1/2019
2.2.0 615 8/12/2019
1.4.0 6,770 11/9/2019
1.3.1 3,321 9/13/2019
1.3.0 3,207 2/1/2019
1.2.0 777 2/1/2019
1.1.0 1,031 1/20/2019
1.0.1 1,211 1/1/2019
1.0.0 865 1/1/2019

Compatible with Umbraco 9