Studio Developer Manual / Version 2210
Table Of ContentsStarting with version 2207.2, CoreMedia comes with a quick search dialog, which supports the parallel search in different parts of the product, such as content and commerce entities.
The quick search dialog can be customized using the ConfigureQuickSearchPlugin
.
The given example shows the standard configuration that is used in the BlueprintFormsStudioPlugin.ts
:
new ConfigureQuickSearchPlugin({ keepResults: true, imageDocTypes: [ "CMPicture" ], actions: [ ... ], types: [ new AppQuickSearchType({ title: QuickSearch_properties.QuickSearch_search_type_apps, }), new ContentQuickSearchType({ id: "allContent", title: QuickSearch_properties.QuickSearch_search_type_content, limit: 5, }), ] })
Example 9.145. Quick Search Default Configuration
The given list explains the configuration in detail:
keepResults
: If set totrue
, the last result of the quick search is stored and shown again when the dialog is opened the next time. Otherwise the search is shown with cleared search results, everytime when the dialog is opened. If only one usage of theConfigureQuickSearchPlugin
sets this flag totrue
, it will be kept this way.imageDocTypes
: The field configures the list of document types that should be used for the image preview. The list is only extendable and will not be overwritten by different usages of theConfigureQuickSearchPlugin
.actions
: This field allows to configure custom actions that are included in the app search. More details about this are shown in the section below.types
: Configures the list ofQuickSearchType
s. EveryQuickSearchType
is searched when the user inputs a search term. If a result is found, a search result section is rendered for the corresponding quick search type.