+

Search Tips   |   Advanced Search


Create a search component

A search element defines the layout of a form that is used to display search results. To use a search create a search component. You cannot add search elements to authoring templates, sites, site areas or content items. Complete the following:

  1. Select a search service.

  2. Select a search collection.

  3. Specify paging options for the search element.

    1. Enter the number of items that are displayed in each navigator page.

    2. Enter the number of the page to display first.

    3. Enter the maximum number of results pages to be included in the navigator design.

    4. Enter the number of results pages to read ahead when using a page navigation element.

      For example, if you enter 3, the page navigation element will calculate results up to 3 pages ahead of the current page. Increasing this number will improve the accuracy of the page navigation element. Lowering this number will improve the performance of the page navigation element when rendered.

    To display multiple pages, use a page navigation element. This is referenced within the header or footer of the search element design specified below.

  4. Select how to sort the search results.

  5. Enter HTML, text and tags into the component design fields to set the layout of the search results:

Header, separator and footer:

The code entered in the header designs and the footer designs will appear before and after the displayed search results. The code entered into the separator will appear between each displayed search result.

Result:

The layout of any search results are displayed here. To display the search results as hyperlinks, include a placeholder in the search result layout. The simplest way to create a result layout is to use the "namelink" placeholder.

No Results:

Enter text to display if no results are returned.

For additional information refer to Import and exporting HTML ..


Parent topic:

Display search results


Related concepts


Search element
Display search results