From 7951d34e2c9fbbe57ab716d57ea6e3ce936e2221 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 30 Dec 2025 20:43:41 +0000
Subject: [PATCH 1/2] Initial plan
From d2b913ea60914f7970bc7471a5ef9f4144106893 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 30 Dec 2025 20:49:13 +0000
Subject: [PATCH 2/2] Add search functionality to blog entries list
Co-authored-by: 7underlines <17121556+7underlines@users.noreply.github.com>
---
.../module/blog-module/page/werkl-blog-list/index.js | 11 +++++++++++
.../page/werkl-blog-list/werkl-blog-list.html.twig | 12 ++++++++++++
2 files changed, 23 insertions(+)
diff --git a/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/index.js b/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/index.js
index 15a40dad..b57c1289 100755
--- a/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/index.js
+++ b/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/index.js
@@ -21,6 +21,7 @@ export default {
total: 0,
isLoading: true,
currentLanguageId: Shopware.Context.api.languageId,
+ term: '',
};
},
@@ -89,6 +90,11 @@ export default {
}
},
+ onSearch(term) {
+ this.term = term;
+ this.getList();
+ },
+
getList() {
this.isLoading = true;
const criteria = new Criteria(this.page, this.limit);
@@ -101,6 +107,11 @@ export default {
if (this.categoryId) {
criteria.addFilter(Criteria.equals('blogCategories.id', this.categoryId));
}
+
+ if (this.term) {
+ criteria.setTerm(this.term);
+ }
+
return this.blogEntryRepository.search(criteria, Shopware.Context.api).then((result) => {
this.total = result.total;
this.blogEntries = result;
diff --git a/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/werkl-blog-list.html.twig b/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/werkl-blog-list.html.twig
index 29edf516..d4e93572 100644
--- a/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/werkl-blog-list.html.twig
+++ b/src/Resources/app/administration/src/module/blog-module/page/werkl-blog-list/werkl-blog-list.html.twig
@@ -18,6 +18,18 @@
+ {% block werkl_blog_list_search %}
+
+
+
+ {% endblock %}
+
{% block werkl_blog_list_smart_bar_actions %}
{% block werkl_blog_list_smart_bar_actions_add %}