shopware.composite_search.definition
. The priority of the tag defines the order in the search order.ApiService
with the key of the entity in camelcase suffixed with Service
. E.g. The service key is yourCustomSearchService
when requesting a service for your_custom_search
. Every entity definition gets automatically an instance in the injection container but can be overridden so there is no additional work needed.searchTypeService
:entityName
is used as the same to change also existing types.entityService
is used for the typed search.placeholderSnippet
is a translation key that is shown when no search term is entered.listingRoute
is used to show a link to continue the search in the module specific listing view.sw-search-bar-item
template has to be altered as seen below, starting with the template:index.js
file:sw_search_bar_item_cms_page
block is used as it is the last block, but it is not important which shopware type is extended as long as the vue else-if structure is kept working.sw-search-more-results
or sw-search
components as well:index.js
file below: