Migration
Moving from WordPress to Builder.io
Moving content from your existing CMS can be much easier than you think. Already use a CMS like WordPress? Do you have tools to export your content to a defined structure like JSON or other? If so, you have a pretty easy path to move your content to Builder.
Export your content
This section shows you how to migrate your content to Builder.io.
Create your migration script
Now that you have your content exported and your custom components ready, it's time to get that content into Builder.io so you can edit and publish. Below we have written some step-by-step instructions on how to create your migration script.
Your migration script should:
- Read your content from your exported files (in this example JSON files) looking for blocks and content of interest, which will be now parsed to your custom components:
As in the above example, when you find a block of interest, identify the custom component that best suits that block and add the custom component with its options to the blocks array to be rendered on your model layout — in this case blog-page
.
Finally, write your content to Builder.io using the Write API so you can edit and publish from the editor:
So the final migration script on this example should be like this:
Additional considerations
This article showed how to migrate blog pages exported from WordPress as JSON format files. Even so, you could use this same process to migrate any content to Builder.io exported from the most famous and used of CMSs on the market.
Conclusion
Migrating content from your existing CMS to Builder.io can be straightforward and fast — just make sure to export your content in a way that you can read it while keeping your components as well-defined as possible. This will help a lot in the migration process. Using these techniques, you can smoothly migrate hundreds or even thousands of pages as many of our customers do!