Skip to content

A WIP attempt to build a simple Umbraco v15 property editor that allows users to add / remove from a list of key and value text strings.

License

Notifications You must be signed in to change notification settings

cheeseytoastie/Umbraco.Community.KeyValuesPropertyEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Umbraco .Community .Key Values Property Editor

Downloads NuGet GitHub license

A custom property editor to allow for key value pairs to be entered.

...

Installation

Add the package to an existing Umbraco website (v15+) from nuget:

dotnet add package Umbraco.Community.Umbraco.Community.KeyValuesPropertyEditor

Add the property editor as a Data Type and then add to your doc types.

Rendering on the page

    @foreach(var curItem in Model.Value<List<KeyValuePair<string, string>>>("myPropertyAlias"))
    {
        <p>@curItem.Key - @curItem.Value</p>
    }

Is it Ready?

It appears to be useable - I would like to better improve the validation handling and ensure that it's been built in an "Umbraco" way but it does the job I needed it to do.

Missing features

Needs a sort. Contributions welcome!

Contributing

Contributions to this package are most welcome! Please read the Contributing Guidelines.

Acknowledgments

Providing invaluable pointers in the forum;

  • Sebastiaan Janssen
  • Jacob Overgaard
  • Luuk Peters
  • Søren Kottal

About

A WIP attempt to build a simple Umbraco v15 property editor that allows users to add / remove from a list of key and value text strings.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors