Questions tagged «category-tree»





4
Magento 2:所选类别在编辑表单中不可见
使用ui组件以管理形式添加了类别选择器。类别ID作为逗号分隔的值保存到数据库中。现在,我想在我的编辑表单中显示该类别。 这是我的example_example_edit.xml文件: <?xml version="1.0"?> <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd"> <body> <referenceContainer name="content"> <uiComponent name="example_form"/> </referenceContainer> </body> </page> 这是我的example_form.xml <?xml version="1.0" encoding="UTF-8"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <argument name="data" xsi:type="array"> <item name="js_config" xsi:type="array"> <item name="provider" xsi:type="string">example_form.example_form_data_source</item> <item name="deps" xsi:type="string">example_form.example_form_data_source</item> </item> <item name="label" xsi:type="string" translate="true">example Information</item> <item name="config" xsi:type="array"> <item name="dataScope" xsi:type="string">data</item> <item name="namespace" xsi:type="string">example_form</item> </item> …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.