Plugins 如何在shopware 6中创建具有自定义列表的后端模块?
我想创建一个自定义后端模块。此列表的数据有一些条件,因此我想为自定义列表创建一个新文件和函数。如何在shopware 6中执行此操作?我们需要为此创建新的API吗?有文件吗?比如shopware 5中的“listAction”Plugins 如何在shopware 6中创建具有自定义列表的后端模块?,plugins,shopware,Plugins,Shopware,我想创建一个自定义后端模块。此列表的数据有一些条件,因此我想为自定义列表创建一个新文件和函数。如何在shopware 6中执行此操作?我们需要为此创建新的API吗?有文件吗?比如shopware 5中的“listAction” 这是获取列表实体的代码 created() { this.repository = this.repositoryFactory.create('swag_bundle'); this.repository .search(new Cri
这是获取列表实体的代码
created() {
this.repository = this.repositoryFactory.create('swag_bundle');
this.repository
.search(new Criteria(), Shopware.Context.api)
.then((result) => {
this.bundles = result;
});
}
我想创建一个新的PHP控制器(如shopware 5中的“listAction”)并从这里调用该函数?如何可能?有一个创建新实体的深入指南,还有一个如何在新模块中添加自定义列表的指南:
有一个创建新实体的深入指南,还有一个如何在新模块中添加自定义列表的指南:
这是获取列表实体的代码。created(){this.repository=this.repositoryFactory.create('swag_bundle');this.repository.search(new Criteria(),Shopware.Context.api)。然后((result)=>{this.bundles=result;});}我想创建一个新的PHP控制器(如Shopware 5中的'listAction'),并从这里调用函数?这是获取列表实体的代码。created(){this.repository=this.repositoryFactory.create('swag_bundle');this.repository.search(new Criteria(),Shopware.Context.api)。然后((result)=>{this.bundles=result;});}我想创建一个新的PHP控制器(如Shopware 5中的'listAction'),并从这里调用函数?这怎么可能?