devdocs icon indicating copy to clipboard operation
devdocs copied to clipboard

No developer level documentation on how to programmatically (in code) create a custom attribute input type

Open rparsi-boxycharm opened this issue 3 years ago • 9 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

What's missing?

I've searched the available magento developer documentation regarding attribute input types. Specifically I'm looking for developer docs illustrating how to create a custom attribute input type in code, that can be used as the renderer for (also in code) custom entity attributes.

For example, how to extend Magento_Ui/js/dynamic-rows to create a new custom attribute input type with custom rendering.

rparsi-boxycharm avatar May 31 '22 17:05 rparsi-boxycharm

Hi @rparsi-boxycharm. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information.

Add a comment to assign the issue: @magento I am working on this


m2-assistant[bot] avatar May 31 '22 17:05 m2-assistant[bot]

@keharper Will a new menu page inside https://experienceleague.adobe.com/docs/commerce-admin/catalog/product-attributes/product-attributes.html be OK? Right after 'Add attribute to a product' I could add a page 'Create a custom attribute input type'. Will it belong there?

goivvy avatar Feb 10 '23 19:02 goivvy

@goivvy, I'll defer to @keharper, but I don't think that the Admin User Guide is the right place for developer tutorials. I think this would make more sense as a tutorial in the PHP Developer Guide. What do you think?

jeff-matthews avatar Feb 10 '23 21:02 jeff-matthews

@jeff-matthews I agree.

@magento I am working on this

goivvy avatar Feb 13 '23 16:02 goivvy

@goivvy I had forgotten there was a tutorials section in the PHP Developer Guide and was looking for a place under "Component Development" to insert the info requested in this issue. The tutorial section would be perfect. Please consider adding links in EAV and extension attributes or anywhere else to your new tutorial.

keharper avatar Feb 13 '23 17:02 keharper

@keharper OK. I'm still working on it.

goivvy avatar Apr 28 '23 19:04 goivvy

@keharper @jeff-matthews What repository should I send a PR to? magento/devdocs?

goivvy avatar May 04 '23 20:05 goivvy

@goivvy, use https://github.com/AdobeDocs/commerce-php

jeff-matthews avatar May 04 '23 20:05 jeff-matthews

@rparsi-boxycharm,

@goivvy created a new topic to address your request in https://github.com/AdobeDocs/commerce-php/pull/150. Could you please take a look and share your feedback?

jeff-matthews avatar May 09 '23 13:05 jeff-matthews