Giter Club home page Giter Club logo

umbraco-custom-valueconverter's Introduction

Custom Value Converter for Umbraco logo

Custom Value Converter for Umbraco

No Maintenance Intended

A wrapper property-editor (for Umbraco) that lets you pick a custom/alternative ValueConverter for a specified data-type.

What does that mean?

Let's say that you have a property that is using a Content Picker editor, when you come to use the property on the frontend of the website, say with ModelsBuilder, the value's object-type would be an IPublishedContent. However, if you wanted to only use the raw value, e.g. a string of the Content's UDI, then your options are to either make an additional call to value.GetUdi(), or use a Custom Value Converter - to swap the default Content Picker value converter with a plain-text value converter.

Configuration Editor for Custom Value Converter

In terms of ModelsBuilder, this would change the property's object-type from an IPublishedContent to a string.

This is just one example, many more advanced combinations could be achieved.

Installation

Please note, currently you can only install a package from the NuGet package repository.

dotnet add package Our.Umbraco.Community.CustomValueConverter

License

Copyright © Lee Kelleher.

All source code is licensed under the Mozilla Public License.

Logo

The package logo uses the Replace icon (by Arthur Shlain) icon from the Noun Project, licensed under CC BY 3.0 US.

umbraco-custom-valueconverter's People

Contributors

leekelleher avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

gtechsltn

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.