Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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 :)
Thanks Charles,
Unlucky for me it's 4.7.1.1, I've had a look round but can't seem to see anything?
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
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 :)
Thanks Charles,
Unlucky for me it's 4.7.1.1, I've had a look round but can't seem to see anything?
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 :)
is working on a reply...