Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Asna 1 post 21 karma points
    Oct 23, 2013 @ 10:22
    Asna
    0

    Umbraco:create childnodes in content using C#

    I am working with umbraco 6.1.6. I want to know how to add a node into the content tree programmatically?

    This is the structure I want:

    content

    • Home
      • start
      • calender
      • frontpage sliders
      • fotos
      • news

    Here childnodes have the same document types. How can I create these childnodes programatically using C#?

  • Ali Sheikh Taheri 470 posts 1648 karma points c-trib
    Oct 23, 2013 @ 10:36
    Ali Sheikh Taheri
    1

    Hi Asna

    Welcome to Umbraco Forum. here is the documentation of how to work with Content API. here

    All the documentation for the v6 API can be found here

    you can also watch the tutorial on Umbraco.Tv here

    There is also this article by Tim which explains the CRUD operation on Content here

    Cheers

    Ali

  • Charles Afford 1163 posts 1709 karma points
    Oct 26, 2013 @ 16:51
    Charles Afford
    0

    You need to use the content service and then create a new document.  From there it should be easy :)

Please Sign in or register to post replies

Write your reply to:

Draft