Search Box widget

Use the Search Box widget to provide members with a more focused search experience. Unlike the search box found on the Userbar, you can configure the Search Box widget during its set up to search specific locations and content types. Members who use this widget to perform a search will have their results pre-filtered based on the widget's configuration.

Similar to other search boxes in your digital workplace, the Search Box widget displays quick search results as you type your query and more extensive results by pressing enter after typing your query.

The search box widget on a page.

Sections in this article:

Access and content visibility

Users will only see search results that they have at least Read access to

Set up

Follow these steps to set up this widget:

  1. Place a  Search Box widget on a page, space, or dashboard. For more information, see Placing and setting up a widget
  2. Select the placed widget's Edit button.
  3. Review and make changes to the settings on the Options, Layout, and Appearance tabs. You can find details about the widget's settings in the Settings section below.
  4. In the widget editor, select Update to apply your changes or Cancel to discard them.  
  5. At the bottom of your page, space, or dashboard, select Publish or Save as Draft to save your changes.

Settings

Setting Description
Title Enter a title for the widget. The title appears as a heading above the widget's contents. You should use the title to provide context to the widget and better structure a page's content by clearly denoting different sections.

When entering a title, you do so only for your currently selected language. If your digital workplace supports multiple languages, you should select  Translation and enter a title for each supported language.  

This field can contain a maximum of 140 characters.
Description

Enter a description for the widget. The description appears between the title and the widget's contents. You can use this text to provide information to users about the widget.

When entering a description, you do so only for your currently selected language. If your digital workplace supports multiple languages, you should select  Translation and enter a description for each supported language.

Search Box hint text Select whether to use Default or Custom hint text. This text displays in the search text box when there is no query. 
  • Default text will vary depending on Search in and Filter by selections. This text automatically displays in a user's selected language.
  • Custom text allows you to enter a text string to display. If your digital workplace supports multiple languages, you should select  Translation and enter a description for each supported language.
Search in

Select where the search box looks for results:

  • Current Page (searches content nested under the page and HTML Content widget on the page)
  • All of the community
  • A Specific Space
Filter by

Select which content type to include results for:

  • No Filter (all content types are returned)
  • Blogs
  • Calendar
  • Pages
  • People (searches the entire workplace regardless of Search in setting)
  • Documents
  • Forums
  • Wikis
  • Microblogs (only available if Search in is set to All of the community) 
  • Spaces (restricts Search in options to Current Page and All of the Community)
Options tab
Setting Description
Class Enter CSS class selectors to provide additional styling to the widget. For more information, see Applying custom CSS to widgets.
Height Select the height of the widget. Options include:
  • Auto:The leftmost slider position. The height of the widget will increase and decrease to contain what it is displaying.
  • Fixed: Select a fixed height between 50px to 600px in increments of 50px. A vertical scrollbar will appear on the widget if the content exceeds this fixed value.
Appearance tab

Note

Your digital workplace's theme overwrites many of the settings on the Appearance tab. However, the settings listed above are usable.