Copied to clipboard

Flag this post as spam?

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


  • Matthew Polmanteer 2 posts 22 karma points
    Jan 19, 2016 @ 02:33
    Matthew Polmanteer
    0

    Programmatically Add Post

    I have a service that gets the data I need and I want to be able to create a post with that information so no manual involvement is needed. Whats the best way to programmatically add a post?

    Thanks,

  • Nikhil Prajapati 19 posts 131 karma points MVP
    Jan 19, 2016 @ 04:43
    Nikhil Prajapati
    0

    Hi Matthew,

    If you want to create content node (for post) into umbraco backend programatically, then please check the Umbraco API documentation at here -https://our.umbraco.org/documentation/reference/management/services/contentservice

  • Matthew Polmanteer 2 posts 22 karma points
    Jan 19, 2016 @ 14:38
    Matthew Polmanteer
    0

    I'm assuming I would just add a node with the type set for contentTypeAlias to Articulate. What about something like tags? I'm guessing I would need to check to see if the tag already existed before creating the parent tag to relate it to?

  • Nikhil Prajapati 19 posts 131 karma points MVP
    Jan 20, 2016 @ 04:22
    Nikhil Prajapati
    0

    Yeah, Matthew

    You have to check before creating post that is there any parent tag exist or not and then you will insert the post accordingly.

  • Mark 11 posts 82 karma points
    Aug 08, 2016 @ 17:15
    Mark
    0

    Hi,

    Did you figure out how to add the postImage programmatically?

    Thanks in advance Mark

Please Sign in or register to post replies

Write your reply to:

Draft