close

Filter

loading table of contents...

Studio Developer Manual / Version 2406.0

Table Of Contents

9.19.3.2 Simple Search Widget

A widget of type SimpleSearchWidgetType displays the result of a search for contents of a configurable type containing a configurable text. By default, the search is limited to the preferred site, if such a site is set. Through the state class SimpleSearchWidgetState, the dashlet provides the associated configuration options contentType, searchText, and preferredSite.

An example configuration of this widget might look like this:

import ConfigureDashboardPlugin from "@coremedia/studio-client.main.editor-components/sdk/dashboard/ConfigureDashboardPlugin";
import SimpleSearchWidgetState from "@coremedia/studio-client.main.editor-components/sdk/dashboard/widgets/search/SimpleSearchWidgetState";
import SimpleSearchWidgetType from "@coremedia/studio-client.main.editor-components/sdk/dashboard/widgets/search/SimpleSearchWidgetType";

//...
new ConfigureDashboardPlugin({
  widgets: [
    new SimpleSearchWidgetState({
      contentType: "CMPicture",
    }),
  ],

  types: [
    new SimpleSearchWidgetType({}),
  ],
})

Example 9.75. Simple Search Widget Configuration


Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.