Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The <search> tag implements search functionality.

Attribute

Type

Mandatory

Description

classStringNSpecify the CSS class name defined in the CSS field.
itemPageStringY

Specify a path to a page in the portal structure.

Example:

itemPage='page' returns a URL of the search results page containing the word 'page':

https://your_instance_url/page?searchQuery

itemViewStringNSpecify a view name responsible for the search page appearance.
onChangeFunctionNSpecify a function called when clicking the Search button.
placeholderStringN

Define a text inside the search field.

searchUrlStringNSpecify a URL suffix defining a page to redirect to after clicking the Search button.
searchQueryStringNAdd a search bar initial value. 
showTitleBooleanNEnable title displayTo enable the title displaying, set the attribute value equal to 'true'. The default value is 'false'.
sizeStringN

Specify the search bar size. Available values: 

  • lg (large)
  • sm (small).
titleStringN

Define a custom title instead of a default one.

To use a custom title, please set a showTitle attribute equal to 'true' first.

topIntegerN

Define the number of matches that can be shown to display in the search suggestion.

tsGroupIdBig IntegerNEnter an ID of the table group to specify the search area. You can find Find the necessary information in the Text Search Group (ts_group) table.


Code Block
languagexml
themeEclipse
titleSearch
linenumberstrue
<search tsGroupId="157018693719021198" top="3" size="lg" itemPage="page" itemView="Service Portal RO" showTitle="1" onChange="s_widget_custom.search(arguments[0]);">