How to create Umbraco Node content with .net User Control?

I have a .net user control to add some opinion nodes to the umbraco content tree. In umbraco, I have the type and type of discussion paper. I need to show this user control on the page until I can do it, but I have to add a “Node view” to the umbraco content tree. How can i do this? There is no document for this, I searched for it for 2 days. thanks in advance

+4
source share
1 answer
Document d = Document.MakeNew("New node name", DocumentType.GetByAlias("myDoctype"), User.GetCurrent(), parentNodeId); 

Replace the parameters with the appropriate values ​​to create a new node called "New node name" of type "MyDoctype". If you do this through external (public) code, use the admin user, replacing User.GetCurrent() with new User(-1) .

+9
source

Source: https://habr.com/ru/post/1397754/


All Articles