I need to export pages or templates made with Magento's Page Builder and import them to another site. Is there some way of achieving this?
5 Answers
Don't listen to any of these people saying that it isn't doable with stock Magento. You just need to be slightly creative as in all programming. It's relatively easy in fact.
Enter your CMS page from the Magento admin and save your page (built with Page Builder) as a template.
Go to your previous site's database (phpMyAdmin or whatever you use to navigate MySQL) and find the pagebuilder_template table.
You should see the names of your saved templates. Export the necessary templates from MySQL into a CSV or SQL file.
Go to your new site's database and find the pagebuilder_template table once again and import those CSV/SQL files. These will be identical to your old site.
Enter Magento's admin again and navigate to your new CMS page and apply the template.
That's all that is required to migrate. Depending on how you stored your media you may need to move some images/videos around or do some re-linking.
Hope this helps! (tested with Magento ver. 2.4.3-p1)
-Rees
-
Thanks for this tip. I'd rather avoid as many 3rd party modules as possible.– AsitisCommented Jul 5, 2022 at 12:43
-
-
For an "enterprise" product in 2023, this is downright embarassing, but +1 for this answer because it does, eventually, provide the desired result. But, wow. ::shakes head::– dossyCommented Dec 20, 2023 at 16:43
-
I recommend you try using data patch scripts.
For many developers these can be pretty intimidating at times though.
A simple module built by Mark Shust to make creating these much easier can be found here: https://github.com/markshust/magento2-module-simpledata
For third party modules, the only one I have found which specifically supports PageBuilder is FireBear's Improved Import & Export for Magento 2
Please report back the solution which worked best for you.
Magento doesn’t have this option. You need to look for third party modules.
For me work venustheme/magento2-setup - github.
You can it also install with composer -
composer require venustheme/magento2-setup
But will installed version 1.0, and i use more extensions from venustheme and have a new version of venustheme/magento2-setup.
However, version 1.0 work same way fine, tested on magento 2.4.3 and 2.4.3-p1.
Yes, this Builder by Magento did not has such a function.
May I suggest using this extension instead in advance https://github.com/Goomento/PageBuilder It's a Free, Opening Source, and of course, the Import/Export function came up as a default functionality alongside others
-
This looks interesting. It is like Elementor for Wordpress. I have to test that on some test installation. Thanks for the tip.– WebninjaCommented Apr 14, 2022 at 12:59