Reputation: 1264
DNN 9.6.1 2sxc 11.2.0
I have a dev and production site that are (more or less) copies of one another.
I created a 2sxc app on the dev site and built some pages. I need to move the pages and the app to the production site.
If I use an page template exported on the dev site to create a new page page on the dev site, the new page is created perfectly.
So, I think that this is a problem with the app export/import process.
Upvotes: 0
Views: 266
Reputation: 5638
The solution I gave Joe is this
So before we start, I need to make sure you understand the core concepts which differentiate data from content.
ContentBlock
Now before we continue, I recommend you read https://docs.2sxc.org/specs/content/index.html and https://docs.2sxc.org/specs/content/dnn-integration.html which explain how DNN modules point to a content block.
From what I understand I believe that your setup is using content.
Is that about right?
If you are migrating a site, then you would export the site-template which would still include M1. M1 would still point to App1 and CB1 but wouldn't find it - and you would then see a message that it couldn't find it yet. In this scenario, you would then export A1 with the checkbox to include ContentBlocks and import it in DNN2 - and everything magically works. This is also explained here: https://2sxc.org/en/learn/copy-duplicate-an-entire-site
If you plan on doing this export/import of the app multiple times, I suggest that you
Once you do this, re-importing the app many times will always point to that original CB1, and everything should work ;)
@joe best mark as fixed
Upvotes: 1
Reputation: 1264
When exporting the pages, I should have checked the first checkbox: Include all content groups.
(Thanks Daniel Mettler!)
Upvotes: 1