Ektron CMS400.NET API Documentation
|
The Web Search server control lets you customize the behavior of the search. You place this control on any Web form from which a site visitor can search your site. For information about the site visitor experience, see the Ektron CMS400.NET Administrator Manual section "Searching Your Web Site" > "Web Site Search."
[DefaultProperty("CatalogId"), ToolboxData("<{0}:ProductSearch runat=server></{0}:ProductSearch>")] public class ProductSearch : ECommerceControl, ICallbackEventHandler;
<DefaultProperty("CatalogId"), ToolboxData("<{0}:ProductSearch runat=server></{0}:ProductSearch>")> Public Class ProductSearch Inherits ECommerceControl Inherits ICallbackEventHandler
ProductSearch.cs
Name |
Description |
The methods of the ProductSearch class are listed here. | |
The properties of the ProductSearch class are listed here. |
|
Name |
Description |
|
Method that can be overridden and used to grab data from the back end for each server control. | |
|
Returns search results to the client callback function | |
|
Processes the callback event by performing the search. | |
|
Method that can be overridden and used to wrap an Ektron toolbar corresponding to a particular Control around some Html text. |
|
Name |
Description |
|
If you want to display an image on the Submit button, enter the server path to it. | |
|
The text used for the Submit button if no image source is identified. If an image source is identified, this is alternative text for the button. | |
|
Sets the amount of time the server control’s data is cached. The default is 0 (zero). This is the amount of time, in seconds, a control’s data is cached. For example, if you want to cache the data for five minutes, you set the CacheInterval property to 300 (three hundred). | |
|
The folder at which the search begins. The starting folder need not be the root folder. The Recursive property determines if the search examines this folder’s subfolders. | |
|
Provide a property’s Friendly Name defined in the Indexing Service to sort search results by that property. Results can be ascending or descending based on OrderDirection. If you enter an invalid property, no search results are returned. If you specify CustomOrderBy and OrderBy, the OrderBy property is ignored. The Friendly Name of a property can be found in Computer Management > Services and Applications > Indexing Service > Your Index > Properties > Friendly Name column. | |
|
Specify an external XSLT file to render the control. By default, the control uses ProductSearch.xsl. This file is located in: | |
|
The QueryString parameter name which is used to pass the product ID to the product details page. | |
|
Set to True to display an additional tab (Advanced) on the ProductSearch control. | |
|
Get the numerical record of the first item on a page. | |
|
Is server control in workarea | |
|
Gets or sets the target window for the hyperlinks in the search result. The choices are:
| |
|
Image to show while Ajax is fetching data. The default is ajax-loader_circle_lg.gif". | |
|
The maximum number of characters the Search text box accepts. If you enter a value less than 50, it is a good idea to set the TextBoxSize property to the same number. | |
|
Limits the length of any returned content’s abstract. To allow unlimited length, set to zero. This property is active only if both of these conditions are true.
| |
|
The order of the search results. Choices are:
| |
|
The direction in which search results are sorted. The default is Ascending.
| |
|
Set to True to search sub-folders of the starting folder. The starting folder is identified in the CatalogID property. | |
|
The number of search results. This is a read-only property. | |
|
Allows a developer to get results from the search control as a DataTable | |
|
An optional result formatting parameter. If non-zero, then the matching content items' teaser/summary is truncated to the given maximum number of characters - followed by an ellipsis (...). If zero, then the entire teaser/summary will be returned (which might be further filtered by the XSLT. | |
|
Lets you designate where search results appear. You can place search criteria in one area of a Web form and the results in another. For example, you have the following tag. <span id="results"></span> In this case, enter results for the property value. | |
|
Allows a developer to get results from the search control as XML. | |
|
Get or set default search text. This is optional. | |
|
If set to True, taxonomy categories will also be searched for the search text specified. The default is False.
| |
|
If set to True, custom summary is used in search results. The default is False.
| |
|
If set to False, the search box does not appear on PostBack. The default is True.
| |
|
Get the numerical record of the last item on a page. | |
|
Specify the location of the style sheet for the search results page. Set the location relative to the site root folder. For example: csslib\mytest.css. Leave blank to use the default style sheet, | |
|
Is server control in workarea | |
|
Select whether to use an And or Or operator when filtering results by taxonomy. By default, the property is set to Or. This allows for a wider range of returned results.
| |
|
The URL for the page that contains a basket control (the URL is used when the customer clicks the 'Add to cart' button). | |
|
The URL for the page that contains a product control (the URL is used when the customer clicks the image or title link). | |
|
The size of the Search text box for user input. The width is based on the number of characters. | |
|
Gets the amount of time, in seconds, it has taken to perform the search. | |
|
This property is not supported by WebSearch. The underlying XML can be displayed using an XSLT specified by the DisplayXslt property of the WebSearch server control. The XSLT filename is specified relative to the current directory. |
|
Name |
Description |
|
Constructor for the WebSearch class. |
Copyright (c) 2008. All rights reserved.
|
What do you think about this topic? Send feedback!
|