Makes it possible to work with label on UI and values on the server side
$ dotnet add package AndrewK.Umbraco.RadioButtonListA custom RadioButtonList property editor for Umbraco that provides enhanced functionality for dealing with keys on the backend and labels in the backoffice.
You can install the package via NuGet:
dotnet add package AndrewK.Umbraco.RadioButtonList
public class MyController : Controller
{
public IActionResult Index()
{
IPublishedContent content = // ... get your content
var values = content.Value<string>("myRadioButtonListProperty");
return View();
}
}
public class MyController : Controller
{
public IActionResult Index()
{
IContent content = // ... get your content
content.SetValue(PropertyAlias, "myOptionKey");
return View();
}
}
export default {
dataLabels: {
one: 'One EN',
two: 'Two EN'
}
}
[
{
"alias": "items",
"value": [
{
"key": "1",
"value": "#dataLabels_one" // "#{section}_{key}"
},
{
"key": "2",
"value": "#dataLabels_two" // "#{section}_{key}"
}
]
}
]

