Copied to clipboard

Flag this post as spam?

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


  • Bex 444 posts 555 karma points
    Jul 07, 2010 @ 14:40
    Bex
    0

    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

     

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 07, 2010 @ 18:00
    Tim
    0

    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!

    :)

  • David Conlisk 432 posts 1008 karma points
    Jul 07, 2010 @ 18:01
    David Conlisk
    0

    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

  • Bex 444 posts 555 karma points
    Jul 07, 2010 @ 18:05
    Bex
    0

    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.

  • David Conlisk 432 posts 1008 karma points
    Jul 07, 2010 @ 18:07
    David Conlisk
    0

    Perhaps I should have realised that by the forum name :) Glad you got it sorted.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jul 08, 2010 @ 00:37
    Tim
    0

    Glad you got it sorted!

    :)

Please Sign in or register to post replies

Write your reply to:

Draft