Skip to content

Instantly share code, notes, and snippets.

@magevision
Last active December 28, 2017 12:20
Show Gist options
  • Save magevision/7fc3ae7a4faba70e71ab189916f47a8d to your computer and use it in GitHub Desktop.
Save magevision/7fc3ae7a4faba70e71ab189916f47a8d to your computer and use it in GitHub Desktop.
Blog Post 25
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="magevision" translate="label" sortOrder="1000">
<label>MageVision Blog Posts</label>
</tab>
<section id="blog25" translate="label" type="text" sortOrder="1012" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Blog Post 25</label>
<tab>magevision</tab>
<resource>MageVision_Blog25::blog25_configuration</resource>
<group id="post25" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="custom_field" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Custom Field</label>
<depends>
<field id="active">1</field>
</depends>
</field>
</group>
</section>
</system>
</config>
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="magevision" translate="label" sortOrder="1000">
<label>MageVision Blog Posts</label>
</tab>
<section id="blog25" translate="label" type="text" sortOrder="1012" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Blog Post 25</label>
<tab>magevision</tab>
<resource>MageVision_Blog25::blog25_configuration</resource>
<group id="post25" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="custom_field" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Custom Field</label>
<depends>
<field id="active" separator=",">0,1</field>
</depends>
</field>
</group>
</section>
</system>
</config>
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<tab id="magevision" translate="label" sortOrder="1000">
<label>MageVision Blog Posts</label>
</tab>
<section id="blog25" translate="label" type="text" sortOrder="1012" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Blog Post 25</label>
<tab>magevision</tab>
<resource>MageVision_Blog25::blog25_configuration</resource>
<group id="post25" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>General</label>
<field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="custom_field" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Custom Field</label>
<depends>
<field id="active">1</field>
</depends>
</field>
</group>
<group id="post25b" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Settings</label>
<field id="custom_field2" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Custom Field 2</label>
<depends>
<field id="blog25/post25/active">1</field>
</depends>
</field>
</group>
</section>
</system>
</config>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment