magento2-phpstorm-plugin icon indicating copy to clipboard operation
magento2-phpstorm-plugin copied to clipboard

Add code generation for creating a new PageBuilder content type

Open drpayyne opened this issue 3 years ago • 6 comments

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. :)

drpayyne avatar Apr 11 '21 06:04 drpayyne

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


m2-assistant[bot] avatar Apr 11 '21 06:04 m2-assistant[bot]

@magento I am working on this

drpayyne avatar Apr 11 '21 06:04 drpayyne

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.

drpayyne avatar Apr 17 '21 11:04 drpayyne

@paras89 can you please help with this issue? What files/content do you think will be helpful to implement autogeneration for?

sivaschenko avatar Mar 21 '22 11:03 sivaschenko

@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.

paras89 avatar Mar 21 '22 12:03 paras89

Thanks @paras89 and @sivaschenko! Unfortunately I'm unable to work on this issue at the moment, so I've unassigned myself.

drpayyne avatar Mar 22 '22 17:03 drpayyne

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.

Minirock avatar Nov 02 '23 09:11 Minirock