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:

Was this article helpful?

Next article

Retrieve page URL