system.xml 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?xml version="1.0"?>
  2. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Backend/etc/system_file.xsd">
  3. <system>
  4. <section id="sw_megamenu" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
  5. <class>separator-top</class>
  6. <label>Mega Menu</label>
  7. <tab>sw_extensions</tab>
  8. <resource>Smartwave_Megamenu::config_megamenu</resource>
  9. <group id="general" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  10. <label>General Settings</label>
  11. <field id="enable" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  12. <label>Enable</label>
  13. <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
  14. </field>
  15. <field id="menu_type" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  16. <label>Default Menu Type</label>
  17. <source_model>Smartwave\Megamenu\Model\Config\Menutype</source_model>
  18. </field>
  19. <field id="static_width" translate="label comment" type="text" sortOrder="22" showInDefault="1" showInWebsite="1" showInStore="1">
  20. <label>Static Width</label>
  21. <comment>eg: 500px</comment>
  22. <depends>
  23. <field id="menu_type">staticwidth</field>
  24. </depends>
  25. </field>
  26. <field id="max_level" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  27. <label>Visible Menu Depth</label>
  28. <comment>eg: 1, 2, 3, 4 (0 - disable limits). For example, if you set this value to 2, only second level categories will be displayed.</comment>
  29. </field>
  30. </group>
  31. <group id="custom_links" translate="label" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1">
  32. <label>Custom Links &amp; Blocks</label>
  33. <field id="staticblock_before" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  34. <label>Static Block(before)</label>
  35. <comment><![CDATA[Input the Static Block ID, the block content will be shown before the default category menu items and after home link.<br/>eg: menu_custom_links_before]]></comment>
  36. </field>
  37. <field id="staticblock_after" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  38. <label>Static Block(after)</label>
  39. <comment><![CDATA[Input the Static Block ID, the block content will be shown after the default category menu items<br/>eg: menu_custom_links]]></comment>
  40. </field>
  41. </group>
  42. <group id="cat_labels" translate="label" type="text" sortOrder="80" showInDefault="1" showInWebsite="1" showInStore="1">
  43. <label>Category Labels</label>
  44. <field id="label1" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
  45. <label>Label 1</label>
  46. <comment><![CDATA[Define the text of the category label 1. Labels can be assigned to every category in <b>Products > Inventory > Categories</b>]]></comment>
  47. </field>
  48. <field id="label2" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
  49. <label>Label 2</label>
  50. <comment><![CDATA[Define the text of the category label 2. Labels can be assigned to every category in <b>Products > Inventory > Categories</b>]]></comment>
  51. </field>
  52. <field id="label3" translate="label comment" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
  53. <label>Label 3</label>
  54. <comment><![CDATA[Define the text of the category label 3. Labels can be assigned to every category in <b>Products > Inventory > Categories</b>]]></comment>
  55. </field>
  56. </group>
  57. </section>
  58. </system>
  59. </config>