Email this Page Log Support Call Send Feedback Print

Previous Topic

Next Topic

Book Contents

Book Index

Search

The search function adds a keyword search to the website. The placeholder is added to the template at the location where the search field is to be displayed, and the functionality is defined in the placeholder substitution rule.

Search results

Search Indexing is completed as pages are added to Website Manager Admin, and after each update. The action processes pages added to the website to create an index of all the words that have been used. An entry is created in the index for each word found in the page, and the number of times the word is used.

When the viewer uses the keyword search, Website Manager compiles the results from the Search Index. The results return a list of clickable links to pages containing the keyword, with each entry ranked in order based on the number of times the word appears in the page.

The Search field and functionality is included by adding a placeholder to the template at the location you want the search field to appear and defining the placeholder value at the global, experience, or language level using the following format:

Search Form

Note: parameters between [] are optional.

The formatting used by the search results is controlled through the list.css, which is added to the experience folder. Website Manager adds a reference to this file in the head section of the template.

Parameter

Description

placeholder

Determines where the search results are displayed. For example, defining the placeholder as "body" replaces the body content with the results table.

page

The name of the page that is used for displaying the search results.

If the page parameter is not defined the default page assigned to the experience is used.

number

The maximum number of results you want displayed on the page, for example "15". If the parameter is not defined all results found will be displayed.

label

The label displayed for the search field.

If this parameter is not defined the default label Search is used.

To Add a Keyword Search to the Website:

  1. Add the placeholder to the template at the appropriate location.
  2. Define the placeholder value in Website Manager at the global, experience, or content level.

See Also

Adding Functionality

Menus

Breadcrumbs

Random Adverts

Language Selector

Experience Selector

Top of Page Email this Page Log Support Call Send Feedback Print