[英]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.