[英]How to create a backend module with a custom listing in shopware 6?
我想创建一个自定义后端模块。 此列表的数据有一些条件,因此我想为自定义列表创建一个新文件和函数。 如何在shopware 6中做到这一点? 我们需要为此创建一个新的 API 吗? 有任何文件吗? 像 shopware 5 中的“listAction” https://github.com/shopwareLabs/SwagLightweightModule/blob/master/Controllers/Backend/ExampleModulePlainHtml.php ?
这是获取列表实体的代码。
created() {
this.repository = this.repositoryFactory.create('swag_bundle');
this.repository
.search(new Criteria(), Shopware.Context.api)
.then((result) => {
this.bundles = result;
});
}
我想在 shopware 5 中创建一个新的 PHP 控制器(比如'listAction' https://github.com/shopwareLabs/SwagLightweightModule/blob/master/Controllers/Backend/ExampleModulePlainHtml.php )并从这里调用函数? 怎么可能?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.