need help migrating content #2065
-
We are updating between major versions, Piranha 4.2 to 11. Blocks were introduced along the way and we need to understand how to get our existing data stored in pages and fields to appear pages blocks . Is there a migration script for creating the new database relationships between pages and our content? Alternatively, is there an ERD for how all the new blocks/content/fields relate? (With an ERD we could figure out the migration .) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
That’s one hell of a migration 🙂 I don’t think blocks should be an issue as it is a feature that was added on top of the features available before, ie blocks didn’t replace anything. this means that after update your pages should retain their existing content but simply not have any blocks. Moving this content over to blocks means re-building the content, there’s no migration as it’s two completely different things. If you are planning to re-build the content with blocks anyway it’s probably faster to start from scratch an move stuff over from the old project to the new bit by bit instead of trying to upgrade the existing project. An upgrade would feel logical if you wanted to retain all of the content as is. |
Beta Was this translation helpful? Give feedback.
-
This pointed us in the right direction. We needed to apply UseBlocks = false and/or IsArchive = true in a few places in our Model Templates. Once we did that, the content in the Manager appeared as we are used to.
No content appeared on our landing page because options.UseCms() had not been added at startup. We have some more debugging to do, but we can tell Piranha is trying to render the view now instead of the application's default html. |
Beta Was this translation helpful? Give feedback.
This pointed us in the right direction.
We needed to apply UseBlocks = false and/or IsArchive = true in a few places in our Model Templates. Once we did that, the content in the Manager appeared as we are used to.
[PageType(Title = "Blog archive", UseBlocks = false, IsArchive = true)]
No content appeared on our landing page because options.UseCms() had not been added at startup. We have some more debugging to do, but we can tell Piranha is trying to render the view now instead of the application's default html.