Creating custom Property Editor and its corresponding model type in the backend.
a
Hey there, I've got a question about creating my own Property Editor. I assume that
Copy code
"propertyEditorSchemaAlias": "Umbraco.Plain.String"
is responsible for defining the value type of Property Editor input. My question is how can I create my own more complex types like objects? Another question, when models are generated automatically This
Copy code
"propertyEditorSchemaAlias": "Umbraco.Plain.String"
is gonna create property in backend model of type string =>
Copy code
public virtual string SuggestionTest => this.Value<string>(_publishedValueFallback, "suggestionTest");
which in my case seems accurate. But what if i was able to create the type
Copy code
"Umbraco.MyObjectHere"
, how backed model would know which type to generate in here
Copy code
this.Value<MyObjectHere>(_publishedValueFallback, "suggestionTest");
?
a
Thanks for that tutorial, seems like i needed to use converter and it worked. One more thing is how can i create my own types in editorSchema
Copy code
"propertyEditorSchemaAlias": "Umbraco.Plain.String"
Let's say i want to have Umbraco.MyProduct type.
35 Views