Content Search

As an enterprise user, you can use a content search component and specify the actions returned by the search.

You can insert a customized search bar to change or refresh the content that’s displayed on the page or choose another action, such as opening a search results page or displaying an alert.

To add a content search component to a page:

  1. Navigate to the page you want to edit and make sure that Edit switch is set to Edit.
  2. Add the content search component to the page.
  3. To edit the component and its appearance, click its menu icon Component Menu icon, and choose Settings.
  4. Use the General tab to modify placeholder text, spacing, alignment, and other presentation options.
  5. Use the Style tab to format the frame that contains the component with predefined styles or with your own custom choices for the font, border, background color, and so on.
  6. If you want to use the search component to refresh data on the current page, add a Content List component to the page. Go to Settings and pick the content type and any other query information, such as number of items to display, whether to paginate the results, or lazy load on scroll (loading content as the page is scrolled). You can now go to View mode and try out the search.
  7. If you want to use the search component to refresh data on the current page and you have more than one Content List component on the page, you’ll need to turn off the auto-query on all content lists except for the one that will display results. Go to the Content List settings and uncheck Auto-refresh on search query in Content Search component.
  8. If you want to have more than one content search component on a page (with each search component driving a certain content list for results), you must uncheck all auto-refresh options in the Content List components and use Trigger/Actions to associate the content search component to its respective content list.
  9. For the search component, use the Link tab to associate actions with the component. Choose an option from the Select Link Type drop-down list. Select Trigger Actions then click On search query to see the available triggers or to create a new trigger. Find the content list you want to search, expand it, and drag Search Content to the actions list. Under Search select Search String. The content list you chose is selected in the Do this action in list.
  10. You can also use the content search component to pass the query to a search results page. On the Link tab of the search component, select Search Page to display a search result page. You can use the default page or link to a search result page that you created. Select the page from the Page drop-down list and choose the display actions for the page. You can tailor the results to a specific content type, open the results in a new window, and so on.
The following pointers can help you design an effective search results page:
  • Create a page and designate it as a search page. By default, it’s marked as hidden, but you can change the setting in the page properties.

  • Edit the page and add a content list to the page. You can edit the settings for the content list, specifying a content type. Or the content type can be specified from the search component link settings (above). If you use the link settings, that lets you use a search results page that can show results from different content types, depending on which component is used to initiate the search.

  • To edit the display, change the settings, such as choosing lazy load pagination (because the page will probably be used exclusively for search results).

  • On the search results page, you can also put in a content search component. This will echo the search string used to launch the page, letting a user refine the search if needed.