nuPickers icon indicating copy to clipboard operation
nuPickers copied to clipboard

Combine all pickers into a single 'nuPicker' property editor

Open Hendy opened this issue 8 years ago • 2 comments

Too much choice !

image

Each property editor combines shared code to define itself, so shouldn't be too difficult to have a new property editor that does this combining.

Hendy avatar Apr 09 '17 21:04 Hendy

If you can't or don't want to do that I would suggest adding in the JSON .manifest file for each picker a group name, so they are grouped under the "nuPickers" group name in the property editor picker dialogue. See https://our.umbraco.org/Documentation/Tutorials/Creating-a-Property-Editor/

propertyEditors: [
        {
            /*this must be a unique alias*/
            alias: "My.MarkdownEditor",
            /*the name*/
            name: "My markdown editor",
            /*the icon*/
            icon: "icon-code",
            /*grouping for "Select editor" dialog*/
            group: "nuPickers",
            /*the HTML file we will load for the editor*/
            editor: {
                view: "~/App_Plugins/myeditor/editor.html"
            }
        }

DanDiplo avatar Apr 26 '17 14:04 DanDiplo

Thanks @DanDiplo, that would certainly help, but the thing is there are no .manifest files in nuPickers ! instead each property editor uses an attribute to make these settings (example) so I'm not sure how to make this change ?

I think for a v2.0.0 a single property editor would be good, as it'd also signify that all the existing datatypes are all interchangeable (and saves you having to remember settings when wanting to change a data-source or an editor).

Hendy avatar Apr 26 '17 15:04 Hendy