The XSLT Template settings for the Search Dialog Web Part enable you to control the HTML format of the search form created by this part. Usually, you will simply format a simple input form with one or more fields.
The XML that is emitted by the Search & Preview Search Dialog Web Part supplies the ID that must be connected to each input field (or control) and also encapsulates several of the settings made for the part (such as the field width, result-page URL, link URLs, additional search terms, etc. The XSL Template must be prepared to handle this information and to format it into a form that will submit a valid query to the result page. The following default templates are supplied for this web part:
• DefaultSimple.xsl: creates a simple form with a single input field, quick-filter selector and/or a scope selector. Property search and multi-field input for constructing Boolean queries are not supported; however, advanced users can still specify these in the using the advanced Search & Preview search syntax.
• DefaultAdvanced.xsl: creates a complex form that can contain a variety of input fields for constructing Boolean queries, plus any number of property-search fields and a scope selector. Quick filters, however, are not supported
• TwoColumns.xsl: creates a complex form similar to the default advanced form but with the properties laid out in two columns.
• XML.xsl: passes the XML generated by the web part without transforming it to HTML. Usually, you will only use this during development and testing.
See “Web Part XSLT Templates” for complete details about how to use the settings in the XSL Template area and for advice on how to create and edit templates for Search & Preview.
Figure: User view of the default Search & Preview result page, which shows how the various standard XSLT template layouts for the Search Summary Web Part are used
See also “Web Part XSLT Templates” for complete details about how to use the settings in the XSL Template area and for advice for how to create and edit templates for Search & Preview.
Need more help with this?
CONTACT US email@example.com OR use our homepage