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 of the widget.
itemPageStringY

Specify a path to a page in the portal structure.

Example:

itemPage=

'

"page

' returns '

" returns a URL of the search results page containing the

word 

page

'

word:

https://your_instance_url/page?searchQuery

itemViewStringNSpecify
a
the view
name responsible
used for the search results page
appearance
rendering.
onChangeFunctionN

Specify a function called when clicking the Search button. Set the attribute value to the custom s_widget_custom method created in the client script.

placeholderStringN

Define a

text inside

placeholder for the search field.

searchUrlStringNSpecify
a URL suffix defining a page to redirect
the URL path that determines which page the user will be redirected to after clicking the
 
Search
 
button.
searchQueryStringNAdd a search bar initial value. 
showTitleBooleanN
To
Set the value to true to 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 
  • lg (large)
sm 
  • sm (small)
.
titleStringN

Define a custom title instead of

a

the default one.

To use a custom title, set

a 

the showTitle

 

attribute

equal

to

'

true

' 

first.

topIntegerN
Define

Specify the number of first matches to display in the search

suggestion

autosuggestion.

tsGroupId
Big Integer
StringNEnter an ID of the table group to specify the search area. Find the necessary information in the Text Search Group (ts_group) table.

Example:

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

The template above displays the following search field on the page:

Image Added