magento2-phpstorm-plugin
magento2-phpstorm-plugin copied to clipboard
Add code generation for creating a new PageBuilder content type
Add code generation for creating a new content type in PageBuilder. Ref: https://devdocs.magento.com/page-builder/docs/content-types/create/introduction.html
There are so many files in different directories. Getting a jump start on file creation and base code in those files would be REALLY useful. Facing this problem myself right now. :)
Hi @drpayyne. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.
Please, add a comment to assign the issue: @magento I am working on this
- Join Magento Community Engineering Slack and ask your questions in #github channel.
@magento I am working on this
Hi @VitaliyBoyko, there's A LOT of settings involved in each file. Do you or anyone else have any idea what must be generated as base content in each file? There's a lot of properties, settings, nested content, etc. If I have some guidance on what exactly must be generated, I could start development on this.
Like, what does a developer want generated as a base step, so they can customize the PageBuilder custom content type as needed from that point onwards.
@paras89 can you please help with this issue? What files/content do you think will be helpful to implement autogeneration for?
@drpayyne - you can look at app/code/Magento/PageBuilder/etc/content_type.xsd and have the required nodes part of the auto-generation content. You can also take as input what the form name for the new content type wlll be then auto-generate the layout and UI component xml configuration - you can also take as input the different fields they would like to have in the form. Another input could be what are the difference appearance types and based on that the content type xml would be auto-filled. Based on appearance input you can also auto-generate the preview/master templates and javascript modules.
Thanks @paras89 and @sivaschenko! Unfortunately I'm unable to work on this issue at the moment, so I've unassigned myself.
Any updates on this ? Seems like https://mage2gen.com/ got into it a little bit but it seems that they are just able to generate one content type with one field...when what we should expect is to generate a content type with many fields and be able to chose each fields type.