Skip to content

SearchDialog

Rick van Dam edited this page Oct 29, 2019 · 9 revisions

The SearchDialog is a dialog that is used by the search enabled fields in this repository. It provides the same functionality that you would normally get when searching in a item such as:

  • Search
  • Facets
  • Bucket settings
  • Etc...

This is because under the hood the same code is being executed. More info about its functionality can be found in the sitecore documentation.

Aside from being used in custom fields its also possible to open it up through code by calling SitecoreSearchFields.Base.Utilities.ContentEditorUtils.ShowSearchDialog.

Parameters

The dialog accepts parameters through a namevalue collection. The following parameters are supported:

  • id: The item under which will be searched. If the item has bucket settings these will be applied to the search modal.
  • pfilter: The persistent filter which will be applied to the search modal. Will be appended to the persistent filter in the bucket settings if this exists. For more info see Persistent Query in the sitecore documentation
  • dfilter: The default filter which will be applied to the search modal. Will be appended to the default filter in the bucket settings if this exists. For more info see Default Query in the sitecore documentation

Images

image

Clone this wiki locally