A custom property editor to allow for key value pairs to be entered.
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.
@foreach(var curItem in Model.Value<List<KeyValuePair<string, string>>>("myPropertyAlias"))
{
<p>@curItem.Key - @curItem.Value</p>
}
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.
Needs a sort. Contributions welcome!
Contributions to this package are most welcome! Please read the Contributing Guidelines.
Providing invaluable pointers in the forum;
- Sebastiaan Janssen
- Jacob Overgaard
- Luuk Peters
- Søren Kottal
