<?xml version="1.0"?>
<!--
/**
 * @module  Autogedal_SeoCanonical
 * @author  Autogedal
 * @licence OSL 3.0
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <section id="seo_canonical" translate="label" sortOrder="140" showInDefault="1" showInWebsite="1" showInStore="1">
            <class>separator-top</class>
            <label>SEO Canonical Settings</label>
            <tab>autogedal</tab>
            <resource>Autogedal_SeoCanonical::config</resource>
            <group id="seo_canonical" translate="label" type="text" sortOrder="95" showInDefault="1" showInWebsite="0" showInStore="1">
                <label>SEO Canonical Configuration</label>
                <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="1">
                    <label>Enable Module</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                </field>
                <field id="category_config" translate="label" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="1">
                    <label>Category Canonical Configuration</label>
                    <frontend_model>Autogedal\SeoCanonical\Block\Adminhtml\Form\Field\CategoryConfig</frontend_model>
                    <backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model>
                </field>
            </group>
        </section>
    </system>
</config>
