Shopware6:缺少插件配置

标签 shopware shopware6

我正在编写我的第一个 Shopware 6 插件并关注 this howto

但是插件的导航入口不会出现。 (URL:admin#/sw/settings/index)菜单如下所示: enter image description here但它应该是这样的:enter image description here

我的插件处于事件状态(在后端检查),表已创建,所以我猜它已加载。

我将教程中的 config.xml 文件复制到我的插件中并对其进行了验证(只是为了确定)。

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/shopware/platform/master/src/Core/System/SystemConfig/Schema/config.xsd">
<card>
    <title>Basic Configuration</title>
    <title lang="de-DE">Grundeinstellungen</title>

    <input-field>
        <name>email</name>
        <copyable>true</copyable>
        <label>eMail address</label>
        <label lang="de-DE">E-Mailadresse</label>
        <placeholder>you@example.com</placeholder>
        <placeholder lang="de-DE">du@beispiel.de</placeholder>
        <helpText>Please fill in your personal eMail address</helpText>
        <helpText lang="de-DE">Bitte trage deine persönliche E-Mailadresse ein</helpText>
    </input-field>

    <input-field type="single-select">
        <name>mailMethod</name>
        <options>
            <option>
                <id>smtp</id>
                <name>English smtp</name>
                <name lang="de-DE">German smtp</name>
            </option>
            <option>
                <id>pop3</id>
                <name>English pop3</name>
                <name lang="de-DE">German pop3</name>
            </option>
        </options>
        <defaultValue>smtp</defaultValue>
        <label>Mail method</label>
        <label lang="de-DE">Versand-Protokoll</label>
    </input-field>
</card>

<card>
    <title>Advanced Configuration</title>
    <title lang="de-DE">Erweiterte Einstellungen</title>

    <input-field type="password">
        <name>secret</name>
        <label>Secret token</label>
        <label lang="de-DE">Geheimschlüssel</label>
        <helpText>Your secret token for xyz...</helpText>
        <helpText lang="de-DE">Dein geheimer Schlüssel für xyz...</helpText>
    </input-field>
</card>

那么显示Plugin导航入口的前提是什么?

最佳答案

好的,问题是,我看错地方了。

for the settings tab, you will need an own module with an settingItem

-- 希姆

如果有人像我一样使用 config.xml,您可以在隐藏在三个点后面的插件配置中配置它。

enter image description here

关于Shopware6:缺少插件配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63177260/

相关文章:

shopware6 - Shopware 6 如何在scss中使用配置的主题原色?

shopware6 - Shopware 6 - 获取产品名称和描述的翻译

Shopware 6 通过一次 API 调用发送多个对象

Shopware 6 插件标准所有国家/地区

templates - 如何在以下商店结构中添加路径

symfony - 6.5更新后产品详情页面出现错误

symfony - ManyToOne 关联字段在商店软件 6 中不起作用

plugins - Shopware 6 自定义插件,删除父级上的扩展不起作用

rest - 使用 Shopware 6 REST API 无需用户密码即可获取客户信息

entity - 合并版本时使用外键扩展 Shopware 实体失败