DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Is there a way to duplicate a page and all it's subpages?

Sort:
You are not authorized to post a reply.
Page 2 of 2 << < 12





Veteran Member





    I recall seeing something about how to handle "collisions" during the import process. YOu'll probably want to look at that.
    Joe Craig
    DNN MVP
    Patapsco Research Group





    Advanced Member





      Thanks - I tried another Import with the "Overwrite Collisions" unchecked. But I still don't see a duplicate set of pages. Any other ideas?

      Thank you again





      Veteran Member





        I would assume that overwrite means to replace existing when there is a collision.

        You could rename the existing pages and do the import.
        Joe Craig
        DNN MVP
        Patapsco Research Group





        New Around Here





          Has this evolved in any way over the past 4 years? I find myself in the same situation as Tom and am looking for a way to export a page with a ton of subpages. I'd like to import these pages in the same portal. The only way I see still, is to export the website, with only the pages and content option selected. But when I import this, The page which I exported (and which I renamed) gets overwritten again... and thats not what I want; I'd just like to let them to be added in the portal. There are going to be 6 pages with almost the exact same subpages; only the level 1 page has a different name.





          Veteran Member





            That's an interesting use case.  I don't expect for DNN to add this as a feature anytime soon, unless someone passionate enough does that work and submits a pull request.  However, this sounds like something that someone could build.  It would just need to be a module that's specific to this use case.  The cool thing is that much of the required development work is already inside of the DNN API itself.  Everything else would be to achieve the exact export and import use case(s) you're trying to resolve.  

            The alternative is to use the site export and import feature, but that's overkill for this and was never meant for a smaller use case (as far as I know).  






            New Around Here





              Well, the site export and import feature would work for me... if my exported page wouldn't be overwritten by the import. Because that's currently the case. But maybe I'm doing it wrong or am I overlooking something.





              Advanced Member





                I am not sure which method for export/import you are using (XML vs JSON), but there is a way (though it can be a bit tedious) to manually rename your pages (within the exported files) to something generic for repeat use.

                David Poindexter


                Creator:







                Veteran Member





                  I would suggest to:

                  1. Create the export
                  2. Move the original pages to a different parent page (and threat them as the copy)
                  3. Import the pages





                  Advanced Member





                    Great idea Timo!

                    David Poindexter


                    Creator:







                    New Around Here





                      Yep, that would currently be the best way, thanks Timo.

                      You are not authorized to post a reply.
                      Page 2 of 2 << < 12

                      These Forums are dedicated to the discussion of DNN Platform.

                      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

                      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
                      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
                      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
                      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
                      5. No Flaming or Trolling.
                      6. No Profanity, Racism, or Prejudice.
                      7. Site Moderators have the final word on approving / removing a thread or post or comment.
                      8. English language posting only, please.

                      Would you like to help us?

                      Awesome! Simply post in the forums using the link below and we'll get you started.

                      Get Involved