Glossary Item Box
This module allows site search and displaying search results list. Search is realized in the following modules content: Page, PageList, News, Events, MailForm, Catalog, SimpleShop, GuestBook.
For correct work of the search in is necessary to set up full text search in the CMS database.
To create a text field to input the text you want to find on the site it is used a SearchBox control. This control is usually placed on the site master page. But you can place it everywhere on the site.
Example of using SearchBox control:
<%@ Register TagPrefix="cmssearch" Namespace="CMSLib.Search" Assembly="CMSLib" %> |
![]() |
You can set any text in a Text property and it will appear in the TextBox before clicking on it. |
A template file for output of the site search results locates in modules/search.ascx. It usually contains a SearchBox tag (for search text input) and a Search tag (for results output).
In the Search tag you can use the following tags:
In the SarchResultTemplate tag of the Search tag you can use the following parameters:
| Template's part | Description |
|---|---|
<%# Container.Number %> |
Record's number |
<%# Container.ModuleType %> |
Module type |
| <%# Container.URL %> | URL to searched page |
<%# Container.Title %> |
Content's title |
<%# Container.Snippet %> |
Snippet |
In the SummaryTemplate tag of the Search tag you can use the following parameters:
| Template's part | Description |
|---|---|
<%# Container.StartIndex %> |
Start showed record index |
<%# Container.EndIndex %> |
End showed record index |
| <%# Container.Total %> | Total number of records |
|
|
| See Also |
Modules: Modules
Installation: DataBase configuration
© 2005-2007 Astron Digital Ltd. All Rights Reserved.