Duplicate pages

To duplicate an existing page within Sitefinity CMS, perform the following:

  1. Use the PageManager class to create a new page node
  2. To create a new page, call CreatePage() method.
    You need to specify the parent node, the unique identifier, and the node type. 
  3. Copy the page data of the node, using the CopyPageData() method. 

EXAMPLE: To duplicate a page, you can use the following code snippet:

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?