Since this is the first time I'm working with Umbraco 7, I have a few questions about property editors. (Using the latest nightly 7.0.0 build 158)
- How do i choose the dbType my property should be saved as? It should be saved as NText instead of NVarchar
- How do i select custom mediatypes and folders with the MediaPicker? (dialogService.mediaPicker)
- How do i hide the label? I've tried two different methods in my package.manifest, but none of them works
{
propertyEditors:[
{
name:"XXX Editor",
alias:"XXX.Editor",
hideLabel: true,
editor:{
view:"~/App_Plugins/xxx.Editor/Editor.html",
valueType: "JSON"
},
prevalues:{
fields:[
{
label:"Preview",
description:"Display a live preview",
key:"preview",
view:"boolean"
},
{
label:"Default value",
description:"If value is blank, the editor will show this",
key:"defaultValue",
view:"textarea"
},
{
label: “Hide label”,
description: “”,
key: “hideLabel”,
view: “boolean”
}
]
}
}
],
javascript:[
“~/App_Plugins/xxx.Editor/Editor.controller.js”
]
}
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/46183-creating-a-property-editor-in-umbraco-7