Ektron CMS400.Net Reference

>>Helping Users Navigate Your Web Site > Searching Your Web Site > Web Site Search > Determining the Display of Search Results

Determining the Display of Search Results

You have three options for determining the display of the search results.

Order of Precedence

Option

Control over Styling

Control over Element Placement

Difficulty Level for Novices

More Information

1

websearch.ekml file

limited

excellent

low

websearch.ekml

2

XSLT

excellent

excellent

high

DisplayXslt

3

Style Sheet

excellent

not available

medium

Using a Style Sheet

You can only use one option to determine the search results display. The options appear in the table above in order of precedence.

That is, if an .ekml file is defined, the other two properties are ignored. If no .ekml file is defined, then an XSLT can determine the display. Finally, if neither an ekml file nor a display xslt is defined, a style sheet is used. If you do not specify a style sheet in the Stylesheet property, the default one is used (siteroot\Workarea\csslib\search.css).

Using a Style Sheet

Style Sheets let you customize visual elements such as color, alignment, font, and size. Ektron CMS400.NET’s search results style sheet has been carefully crafted to give you precise control of even the smallest elements of the page. For more information on working with style sheets, visit http://www.w3.org/Style/CSS/.

You can create your own style sheet or modify the default one, siteroot\Workarea\csslib\search.css.

Best Practice

Ektron recommends copying and renaming the default style sheet. Then, enter the new one into the Web Search server control’s Stylesheet property. This insures you always have a clean file to start with and gives you something to reference if you are not getting expected results.

The style sheet must reside underneath the site root.

You can only define one Search style sheet for each Web page. If you place more than one Web Search server control on a page, they share a style sheet.

(continued in Filtering Search Results by Category)


Visit the Ektron Dev Center at http://dev.ektron.com 1-866 - 4 - EKTRON

Ektron CMS400.NET Reference Version 8.02 SP1 Rev 1

Ektron Documentation,© 2011 Ektron, Inc.