3 votes

SuperValueConverters

SuperValueConverters is a collection of powerful property value converters for Umbraco 7, eliminating the need for casting and null checks on Umbraco picker values in views or controllers and helping to keep code cleaner.

Usage

Once installed you don't need to do anything to activate SuperValueConverters.

Where a picker that returns multiple items (such as MNTP or Nested Content) has been configured to only allow a single item to be selected (via it's "maxItems" setting), the returned value will now be a single IPublishedContent rather than IEnumerable<IPublishedContent>.

Even better - it works seamlessly with Models Builder (if you're using it) to return the correct model types from pickers rather than IPublishedContent. If a picker has been configured to only allow items of a specific doctype, the returned value's type will be already cast to the relevant model.

Supported value converters will no longer return null if no value has been picked - an empty collection will be returned instead, preventing the need for null checks.

Currently the following datatypes are supported:

  • Media Picker
  • Multi-Node Tree Picker
  • Nested Content

Package owner

Callum Whyte

Callum Whyte

Callum has 170 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
8.0.x (untested)
7.13.x (100%)
7.12.x (100%)
7.11.x (100%)
7.10.x (100%)
7.9.x (100%)
7.8.x (100%)
7.7.x (100%)
7.6.x (untested)
7.5.x (untested)
7.4.x (untested)
7.3.x (untested)
7.2.x (untested)
7.1.x (untested)
7.0.x (untested)
6.1.x (untested)
6.0.x (untested)

You must login before you can report on package compatibility.

Package Information

  • Package owner: Callum Whyte
  • Created: 06/02/2019
  • Current version 1.0.0
  • .net Version 4.5
  • License MIT
  • Downloads: 15

External resources