0

I am currently working on a Magento project where I have to add a custom system configuration to manage my hosts.

I followed an old configuration I have used in an old project which uses the Magento version 2.2.

<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <section id="catalog" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
            <group id="config" translate="label" type="text" sortOrder="90" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Setup</label>
                <field id="host" translate="label" type="text" sortOrder="67" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Host</label>
                </field>
            </group>
        </section>
    </system>
</config>

But starting from Magento 2.3 this solution doesn't work anymore.

Do I have to enable the configuration manually in order to see it in the admin configuration panel?

4

2 回答 2

0

在该部分中,您缺少以下节点:

<section ...>
    <tab>$TAB</tab>
    <label>$LABEL</label>
    <resource>$RESOURCE</resource>
</section>
于 2019-07-11T08:48:48.127 回答
0

我试过你的片段,它对我很好。

Magento 2 商店配置

Catalog Tab也许(蓝色下划线)和“目录部分”(黄色突出显示)之间存在混淆?

告诉我,如果是这样,我会给你你需要的片段。

于 2019-07-11T09:18:28.667 回答