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
Hi
I am using Umbraco 4.5 and I am trying to see if there is a way of copying nodes in the content view to a new part of the tree.
There doesn't appear to be a "copy" function on the node, but is there any other way of doing it?
I've been treking through the forum and wiki and can't seem to find anything related it this?
Bex
Are you using a CMSNode to load your content? That doesn't have a copy method associated with it. You need to open the document as:
cms.businesslogic.web.Document doc = new cms.businesslogic.web.Document(id);
that object has a move and a copy method associated with it. Hope that helps!
:)
Hi Bex,
Are you logged in as an administrator? When you right-click on a node in the Content tree you should see a Copy option there that will allow you to copy the selected item to another place in the Content tree.
David
Tim..
Thank you! Just found that just as you posted your reply!! :)
I was using a node instead!David, I'm doing it programatically not on the UI, but thanks for your reply.
Perhaps I should have realised that by the forum name :) Glad you got it sorted.
Glad you got it sorted!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Copying Nodes in content view using C#
Hi
I am using Umbraco 4.5 and I am trying to see if there is a way of copying nodes in the content view to a new part of the tree.
There doesn't appear to be a "copy" function on the node, but is there any other way of doing it?
I've been treking through the forum and wiki and can't seem to find anything related it this?
Bex
Are you using a CMSNode to load your content? That doesn't have a copy method associated with it. You need to open the document as:
cms.businesslogic.web.Document doc = new cms.businesslogic.web.Document(id);
that object has a move and a copy method associated with it. Hope that helps!
:)
Hi Bex,
Are you logged in as an administrator? When you right-click on a node in the Content tree you should see a Copy option there that will allow you to copy the selected item to another place in the Content tree.
David
Tim..
Thank you! Just found that just as you posted your reply!! :)
I was using a node instead!
David,
I'm doing it programatically not on the UI, but thanks for your reply.
Perhaps I should have realised that by the forum name :) Glad you got it sorted.
Glad you got it sorted!
:)
is working on a reply...