Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 30, 2025

Administrators need to search through blog entries in the administration panel. Translation keys existed but the feature was not implemented.

Changes

werkl-blog-list/index.js

  • Added term data property
  • Added onSearch(term) method to handle search input
  • Modified getList() to apply criteria.setTerm(this.term) when search term exists

werkl-blog-list.html.twig

  • Added sw-simple-search-field component in search-bar slot
  • Bound to existing translation key werkl-blog.general.placeholderSearchBar
getList() {
    const criteria = new Criteria(this.page, this.limit);
    // ... associations and sorting ...
    
    if (this.term) {
        criteria.setTerm(this.term);
    }
    
    return this.blogEntryRepository.search(criteria, Shopware.Context.api);
}

Search works alongside existing category filtering. Uses Shopware's standard entity search pattern.

Original prompt

This section details on the original issue you should resolve

<issue_title>Can we make the blog entries in the administration searchable?</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: 7underlines <17121556+7underlines@users.noreply.github.com>
Copilot AI changed the title [WIP] Add search functionality for blog entries in administration Add search functionality to blog entries list in administration Dec 30, 2025
Copilot AI requested a review from 7underlines December 30, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can we make the blog entries in the administration searchable?

2 participants