From ac83fa781b1208e3544469872ec16e6fec82cc5c Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 29 Aug 2013 18:06:16 +1000 Subject: [PATCH] Completed a backwards compatible radio button list property editor - re-uses all of the other already created list type editors. --- .../propertyeditors/radiobuttons/radiobuttons.html | 12 ++++++++++++ .../PropertyEditors/DropDownPropertyEditor.cs | 14 ++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 src/Umbraco.Web.UI.Client/src/views/propertyeditors/radiobuttons/radiobuttons.html diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/radiobuttons/radiobuttons.html b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/radiobuttons/radiobuttons.html new file mode 100644 index 0000000000..9764e2659f --- /dev/null +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/radiobuttons/radiobuttons.html @@ -0,0 +1,12 @@ +
+ +
\ No newline at end of file diff --git a/src/Umbraco.Web/PropertyEditors/DropDownPropertyEditor.cs b/src/Umbraco.Web/PropertyEditors/DropDownPropertyEditor.cs index fe357cebf4..bbfddb12d2 100644 --- a/src/Umbraco.Web/PropertyEditors/DropDownPropertyEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/DropDownPropertyEditor.cs @@ -29,4 +29,18 @@ namespace Umbraco.Web.PropertyEditors } } + + /// + /// A property editor to allow the individual selection of pre-defined items. + /// + /// + /// Due to remaining backwards compatible, this stores the id of the item in the database which is why it is marked + /// as INT and we have logic in here to ensure it is formatted correctly including ensuring that the INT ID value is published + /// in cache and not the string value. + /// + [PropertyEditor(Constants.PropertyEditors.RadioButtonList, "Radio button list", "radiobuttons", ValueType = "INT")] + public class RadioButtonsPropertyEditor : DropDownWithKeysPropertyEditor + { + + } } \ No newline at end of file