首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Shopware6:缺少插件配置

Shopware6:缺少插件配置
EN

Stack Overflow用户
提问于 2020-07-30 16:17:06
回答 1查看 660关注 0票数 2

我正在编写我的第一个Shopware 6插件和下面的这个方法

但是插件的导航条目不会出现。(URL: admin#/sw/sw/index)菜单如下所示:

但应该是这样的:

我的插件是活动的(在后端签入),表是创建的,所以我猜它已经加载了。

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

代码语言:javascript
复制
<?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>

,那么显示插件导航条目的先决条件是什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-07-30 16:25:16

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

对于设置选项卡,您将需要一个带有settingItem的自己的模块

- Shyim

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

票数 6
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63177260

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档