From reading the code comments (https://github.com/umbraco/Umbraco-CMS/blob/3bf5160895a2b551929f1830a9e40bc5b1fe1801/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js#L330), I get this:
var options = {
id: "content-id",
submit: function(){ /* submit function */ },
close: function(){ /* close function */ },
};
editorService.contentEditor(options);
An examle can be found in contentpicker
(https://github.com/umbraco/Umbraco-CMS/blob/c6467b355d6a5c0b10e2c79efbef8029d9cfac23/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js#L288)
Hi Soren this is cool but what if you want to make this on a custom angular section? For instance, i click on button to add a new customer and inside the first editor dialog i want to open another one to create the customer category. So not using Umbraco nodes but instead custom data from a custom api source.
Opening Infinity Editor with Angular
Is there a way in Umbraco 8 to open an infinity editor with angular to edit a page?
I've tried this:
but it just opens a blank blade.
Thanks.
James R.
Hi,
From reading the code comments (https://github.com/umbraco/Umbraco-CMS/blob/3bf5160895a2b551929f1830a9e40bc5b1fe1801/src/Umbraco.Web.UI.Client/src/common/services/editor.service.js#L330), I get this:
An examle can be found in contentpicker (https://github.com/umbraco/Umbraco-CMS/blob/c6467b355d6a5c0b10e2c79efbef8029d9cfac23/src/Umbraco.Web.UI.Client/src/views/propertyeditors/contentpicker/contentpicker.controller.js#L288)
hth :)
Hi Soren this is cool but what if you want to make this on a custom angular section? For instance, i click on button to add a new customer and inside the first editor dialog i want to open another one to create the customer category. So not using Umbraco nodes but instead custom data from a custom api source.
Do you know how to achieve this behavior?
Thanks, Marco
Hi,
Have a look at the source code of the code mentioned above. Essentially you have to create a view that can handle editing your entity.
What umbraco does is that the entity (document) is composed of properties that are setup using datatypes and their editors.
HTH :-)
Wow that works and its super cool!
Thanks man!
is working on a reply...