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?

 19 Replies
 3 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Page 2 of 2 << < 12
Author
Messages
Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
I recall seeing something about how to handle "collisions" during the import process. YOu'll probably want to look at that.
Advanced Member
Posts: 228
Advanced Member
New Poster
New Poster
Congrats on posting!
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
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
I would assume that overwrite means to replace existing when there is a collision.

You could rename the existing pages and do the import.
New Around Here
Posts: 16
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.
Senior Member
Posts: 1607
Senior Member
MVP
MVP
You're an MVP!
New Poster
New Poster
Congrats on posting!

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
Posts: 16
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.
Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
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:


Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

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
Veteran Member
Posts: 360
Veteran Member
Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
MVP
MVP
You're an MVP!
Great idea Timo!

David Poindexter


Creator:


New Around Here
Posts: 16
New Around Here

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

Page 2 of 2 << < 12

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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