Categories
CMS Magento Mastering Development

How to create functional of selecting products on admin category page

I’m trying to create selecting products on category page, I make: ui_component (category_form.xml) <form xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=”urn:magento:module:Magento_Ui:etc/ui_configuration.xsd”> <fieldset name=”select_products” sortOrder=”40″> <settings> <collapsible>true</collapsible> <label translate=”true”>Select Products</label> </settings> <container name=”select_products_container” sortOrder=”160″> <htmlContent name=”html_content”> <block name=”gallery” class=”Vendor\Module\Block\Adminhtml\Category\AddProducts”/> </htmlContent> </container> </fieldset> </form> AddProduct class: class AddProducts extends \Magento\Backend\Block\Template { /** * Block template * * @var string */ protected $_template […]