the importer does not import cmspage and cmsblock like in mage2vuestorefront
See original GitHub issueWithin the scripts/mage2vs.js the import commands for importing cms parts are missing. Let’s add them here, too.
commands from mage2vuestorefront:
node --harmony cli.js blocks
node --harmony cli.js pages
This is the syntax how it could look like, @pkarw is that correct or am I mistaken?
return exec('node', [
'--harmony',
'node_modules/mage2vuestorefront/src/cli.js',
'pages'
], { env: env, shell: true })
return exec('node', [
'--harmony',
'node_modules/mage2vuestorefront/src/cli.js',
'blocks'
], { env: env, shell: true })
As we talked already I would volunteer to fix this issue right away @pkarw, tho it might be that I need a little hands on, about the code.
- add the commands to the scripts/mage2vs.js
- update the readme file about it
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
the importer does not import cmspage and cmsblock like in ...
Within the scripts/mage2vs.js the import commands for importing cms parts are missing. Let's add them here, too. commands from ...
Read more >Error while import Magento2 cms page(HTTP ERROR ...
First of all, connect to magento API via postman and check the cms endpoint actually responds with correct json data. if it does,...
Read more >How to import and export CMS/Static Blocks to Magento 2
This blog post about importing and exporting static blocks to ... you want to export, in this article, we will be exporting CMS...
Read more >How to configure Import Export CMS pages? - Mageplaza
In the Import CMS Page section, choose File Type and then click Download Sample File to download the file that you want. Select...
Read more >Using CMS blocks effectively in Vue Storefront - ITNEXT
CMS blocks are a popular way to enable users to edit elements in their Magento 2 websites from the backend, it requires (almost)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It looks like the right solution. The only thing is that somebody might not have the Snowdogs module installed; in that case we should display a proper error message - and that’s all 😃
@pkarw new PR is ready. Let me know if the Idea about doing a try catch to be aware of missing extension or problems is okay. Also since I’m not able to run docker on my private machine (not windows pro) this code is not tested. Would be cool if you could run a testcase.