Advertisement
Guest User

Magento 2 system.xml

a guest
Aug 9th, 2016
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?xml version="1.0"?>
  2.  
  3. <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../Magento/Config/etc/system_file.xsd">
  4. <system>
  5. <tab id="tab_id" translate="label" sortOrder="10">
  6. <label>Some Tag Label</label>
  7. </tab>
  8.  
  9. <section id="section_id" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="1">
  10. <label>Some Section Label</label>
  11. <tab>tab_code</tab>
  12. <resource>Some_resource::some_resource</resource>
  13.  
  14. <group id="category" translate="label comment" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
  15.  
  16. <field id="root_category_id" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
  17. <label>Default Root Category</label>
  18. <source_model>VENDOR\EXTENSION_NAME\Model\Config\Source\Category</source_model>
  19. <validate>required-entry</validate>
  20. <comment>Some comment.</comment>
  21. </field>
  22.  
  23. </group>
  24.  
  25. </section>
  26. </system>
  27. </config>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement