shopware - Shopware6:缺少插件配置
问题描述
我正在编写我的第一个 Shopware 6 插件并遵循此操作指南
但是插件的导航条目不会显示。(URL:admin#/sw/settings/index),菜单看起来像这样: 但它应该看起来像这样:
我的插件处于活动状态(在后端签入),表已创建,所以我猜它已加载。
我将教程中的 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导航入口的前提是什么呢?
解决方案
推荐阅读
- ios - 当 viewContext.automaticallyMergesChangesFromParent 设置为 true 时,viewContext 指的是什么父级?
- javascript - JavaScript 重构未按预期工作
- python - 如何在 Reportlab 中创建多行文本字段?
- ios - 在 ios 中为颤振生成 ipa 构建时出错
- google-sheets - Google表格:复制后如何保持指向当前表格的范围的链接?
- c - 如何将 C 宏用于数字和字符串?
- python - 如何在 imblearn.pipeline 中使用数据预处理
- cloudflare - 启用 CloudFlare 代理时,会出现 HTTP 请求重复问题
- postgresql - 为什么分区表上的选择查询会锁定并卡住
- c# - Xamarin Microcharts 错误:命名空间“Microcharts”中不存在类型或命名空间名称“Entry”