Skip to main content

Copy and overwrite a page

This page applies to:MindTouch Responsive

With MindTouch you can create a copy of a single or multiple pages, edit them, and then overwrite the original pages with your edited copies. You can also create pages with the same title, and then replace an existing page from within the Copy dailog.
 

Laws of copy and overwrite

  • When initially copying a page, you must select the Overwrite existing pages checkbox In the Copy dialog to overwrite the page.
     
  • You must have two pages with the same URL. It doesn't necessarily mean you have to have the same title. For example:
    • I have a page titled "Knowledge Base" with the URL of mysite.mindtouch.us/01_Knowledge_Base and I want to overwrite it with the page titled "Knowledge is Power" with the URL of mysite.mindtouch.us/Integration/01_Knowledge_Base, the page will overwrite it and change the title.
       
  • All attachments will be merged.
    • Attachments on the destination not present on the source will not be deleted.
    • Attachments with the same name between source and destination will be updated with a new revision (if the source version is different).
       
  • All properties  will be merged
    • Applies to both page and attachment properties.
    • Properties on the destination not present on the source will not be deleted.
    • Properties with the same name between source and destination will be updated.
       
  • Custom tags will also be merged, existing custom tags will not be deleted.
     
  • If you do not have permissions to edit a page, it will remain unaffected if you try to overwrite it. For example:
    • We have pages with the path /A/B/C, you have permission to edit page B but no permission to edit page C. You navigate to page B with the path /X/B/C. You attempt to Copy and Overwrite page B and it's child page C to the pages with the path /A/B/C. Page B will be overwritten but page C will remain the same because you do not have permission to edit that page.
       
  • The ability to copy and overwrite boils down to three permissions handled:
    • READ:  In order to copy any pages a pro member must have the ability to read/view a page.
    • CREATE and UPDATE:  In order to overwrite and existing page you must be able to update/edit the page. If the page doesn't exist you must have the a ability to create at the destination.

How permissions are handled

Permissions are handled the same way it is when copying pages, it will inherit the permissions of it's parent. For instance, if you have the following structure:

  • /Parent
    • /Parent/Page_1
    • /Parent/Page_2
  • /Parent_2

If you copy "/Parent/Page_1"  under "/Parent_2", the new "/Parent_2/Page_1" page will inherit the existing permissions of "/Parent_2":

  • /Parent
    • /Parent/Page_1
    • /Parent/Page_2
  • /Parent_2
    • /Parent_2/Page_1 (this page will inherit the permissions of "/Parent_2")
  • Was this article helpful?