Copied to clipboard

Flag this post as spam?

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


  • Craig Cronin 303 posts 502 karma points
    May 02, 2014 @ 11:17
    Craig Cronin
    0

    Swapping out a content node???

    I'm looking for a way to copy a content node easily using the API c#?

    I have an existing content node that I would like to copy a new content node detail to and then delete really due to there being so many like to this node?

     

  • Charles Afford 1163 posts 1709 karma points
    May 05, 2014 @ 17:05
    Charles Afford
    0

    Hi, What version of umbraco are you using?

    If you are using the version +6.0 api you can use a method on ContentService?

    ContentService contentService = new ContentService();

    contentService.Copy(pass in parameters);

    Charlie :)

  • Craig Cronin 303 posts 502 karma points
    May 05, 2014 @ 17:07
    Craig Cronin
    0

    Thanks Charles,

    Unlucky for me it's 4.7.1.1, I've had a look round but can't seem to see anything?

  • Charles Afford 1163 posts 1709 karma points
    May 05, 2014 @ 17:13
    Charles Afford
    0

    No worries,

    Do you have access to Document from either BussinessLogic or cms.businesslogic.web?.  That might have a method on there :).

    Also i suggest you upgrade from 4.7.1.1 (I belive there was a 'major' security issue with that version that was patched:

    http://umbraco.com/follow-us/blog-archive/2013/5/1/security-update-two-major-vulnerabilities-found.aspx

    Charlie :)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies