More in this section
Forums / Developing with Sitefinity / Copy functionality to duplicate items in a custom module

Copy functionality to duplicate items in a custom module

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Richa
    Richa avatar
    69 posts
    04 Jun 2009
    08 Aug 2011
    Link to this post
    We have a Sitefinity 3.7.2096.2 site which has a custom Inventory module based on Generic content module. What would be the right way to get copy functionality in the module so that content items can be copied to create new items?

  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    08 Aug 2011
    Link to this post
    Hi Richa,

    You need to use the content items API

    get a content item, get its content and metadata and create a new content item where you set the same values.

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
2 posts, 0 answered