I have added an extra tab into the category for using ui_component with a proper sort order. It's working fine, not issues but after adding these tab Magento default general comes at the end of the form. No 3rd-party extension installed on the system and using Magento 2.2.1 but these issue is still identified in Magento 2.1.7. For better understanding see the attachment.
I'm just trying to add my extra tab at the end without any tab alteration.
Could you show your Ui_Component xml file code?
Based on your xml we can give a hint for you.
Thanks.
See the code below,
<?xml version="1.0"?> <form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> <fieldset name="cafedu_theme_settings"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="label" xsi:type="string" translate="true">Cafedu - Theme Settings</item> <item name="collapsible" xsi:type="boolean">true</item> <item name="sortOrder" xsi:type="number">200</item> </item> </argument> <field name="in_homepage"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="sortOrder" xsi:type="number">1</item> <item name="dataType" xsi:type="string">boolean</item> <item name="formElement" xsi:type="string">checkbox</item> <item name="label" xsi:type="string" translate="true">Visible in Home Page</item> <item name="prefer" xsi:type="string">toggle</item> <item name="valueMap" xsi:type="array"> <item name="true" xsi:type="string">1</item> <item name="false" xsi:type="string">0</item> </item> <item name="default" xsi:type="number">0</item> </item> </argument> </field> <field name="is_collections"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="sortOrder" xsi:type="number">2</item> <item name="dataType" xsi:type="string">boolean</item> <item name="formElement" xsi:type="string">checkbox</item> <item name="label" xsi:type="string" translate="true">Include in Collections</item> <item name="prefer" xsi:type="string">toggle</item> <item name="valueMap" xsi:type="array"> <item name="true" xsi:type="string">1</item> <item name="false" xsi:type="string">0</item> </item> <item name="default" xsi:type="number">0</item> </item> </argument> </field> <field name="banner"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="sortOrder" xsi:type="number">3</item> <item name="dataType" xsi:type="string">string</item> <item name="label" xsi:type="string" translate="true">Home Page - Banner Image</item> <item name="visible" xsi:type="boolean">true</item> <item name="formElement" xsi:type="string">fileUploader</item> <item name="elementTmpl" xsi:type="string">ui/form/element/uploader/uploader</item> <item name="previewTmpl" xsi:type="string">Magento_Catalog/image-preview</item> <item name="required" xsi:type="boolean">false</item> <item name="uploaderConfig" xsi:type="array"> <item name="url" xsi:type="url" path="cafedu_theme/category_banner/upload"/> </item> </item> </argument> </field> <field name="image_2"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="sortOrder" xsi:type="number">4</item> <item name="dataType" xsi:type="string">string</item> <item name="label" xsi:type="string" translate="true">Category Image 2</item> <item name="visible" xsi:type="boolean">true</item> <item name="formElement" xsi:type="string">fileUploader</item> <item name="elementTmpl" xsi:type="string">ui/form/element/uploader/uploader</item> <item name="previewTmpl" xsi:type="string">Magento_Catalog/image-preview</item> <item name="required" xsi:type="boolean">false</item> <item name="uploaderConfig" xsi:type="array"> <item name="url" xsi:type="url" path="cafedu_theme/category_image/upload"/> </item> </item> </argument> </field> </fieldset> </form>
Hello,
its bug, you can solve it by overriding 'category_form.xml' into your theme and add
sortOrder="5" on <fieldset name="general"> like :
<fieldset name="general" sortOrder="5">
it will solve your problem.
Thanks