I've been using Umbraco a long time but new to using the API.
I'm creating a user control that takes data in a form and uses that data to create a new node of a specific, exisiting document type under a specific parent node. Can anyone point me in the direction of a tutorial that covers something this basic or run over the fundamentals of using the API to achieve this in Umbraco 4?
Take a look at the API cheatsheet for sample code at <span style="white-space: pre-wrap; "> http://www.<span style="color: #000000; font-family: Verdana; font-size: 10px; line-height: normal; white-space: normal;"><span style="color: #333333; font-family: Arial; font-size: 14px; line-height: 18px; white-space: pre-wrap;">umbraco.org/documentation/books/api-cheatsheet</span><span style="color: #333333; font-family: Arial; font-size: 14px; line-height: 18px; white-space: pre-wrap;">. The first section shows how to create a document using the API. Also download the Blog4Umbraco for an further example. It uses the same concept to add a comment document under a blog posting (specific parent node) using a usercontrol. - Chris</span></span></span>
You need to look into the Document API, that is what is responsible for creating nodes in the Umbraco tree. Alternatively you could check out a project of mine, the Umbraco Interaction Layer (http://uil.codeplex.com/) which allows you to create strongly typed versions of your document types for CRUD operations.
Create new node through user control?
Hi everyone,
I've been using Umbraco a long time but new to using the API.
I'm creating a user control that takes data in a form and uses that data to create a new node of a specific, exisiting document type under a specific parent node. Can anyone point me in the direction of a tutorial that covers something this basic or run over the fundamentals of using the API to achieve this in Umbraco 4?
Thanks for any help anyone can offer.
Shufflemoomin
Shufflemoomin,
Take a look at the API cheatsheet for sample code at <span style="white-space: pre-wrap; "> http://www.<span style="color: #000000; font-family: Verdana; font-size: 10px; line-height: normal; white-space: normal;"><span style="color: #333333; font-family: Arial; font-size: 14px; line-height: 18px; white-space: pre-wrap;">umbraco.org/documentation/books/api-cheatsheet</span><span style="color: #333333; font-family: Arial; font-size: 14px; line-height: 18px; white-space: pre-wrap;">. The first section shows how to create a document using the API. Also download the Blog4Umbraco for an further example. It uses the same concept to add a comment document under a blog posting (specific parent node) using a usercontrol. - Chris</span></span></span>
Sorry url got jumbled : http://umbraco.org/documentation/books/api-cheatsheet
You need to look into the Document API, that is what is responsible for creating nodes in the Umbraco tree. Alternatively you could check out a project of mine, the Umbraco Interaction Layer (http://uil.codeplex.com/) which allows you to create strongly typed versions of your document types for CRUD operations.
is working on a reply...