Search Function (cf)

The search tag is used to display a text box, with a search button on the template. When seen on the template on the Web page, the users will be allowed to enter text and click on the search button to search through all the content on the Web site.

Shown here is the format for the ecmSearch tag.

<CFMODULE template="#request.ecm.AppPath#ecmSearch.cfm"

StartingFolder=""

Recursive=""

TargetPage=""

TextBoxSize=""

MaxCharacters=""

ButtonImageSrc=""

ButtonText=""

FontFace=""

FontColor=""

FontSize=""

Horizontal=""

>

This function is basically the same as the Search function in ASP. See Search Functions (ASP) for details.

The only difference between the Coldfusion function and the ASP one is the syntax for implementing it. The ColdFusion example is below.

Search Tag Example

<tr>

<td>

<CFMODULE template="#request.ecm.AppPath#ecmSearch.cfm"

StartingFolder="\marketing" Recursive="1" TargetPage="search-

display.cfm" TextBoxSize="25" MaxCharacters="200"

ButtonImageSrc="" ButtonText="Search" FontFace="Verdana"

FontColor="##808080" FontSize="2" Horizontal="0">

</td>

</tr>

Previous TopicNext Topic|