beautypg.com

Xslt code for the secure search checkbox – Google Search Appliance Creating the Search Experience User Manual

Page 119

background image

Google Search Appliance: Creating the Search Experience

Advanced Customization Topics

119

XSLT Code for the Secure Search Checkbox

This customized search box is defined by XSLT rules in the stylesheet associated with iframe-example-
frontend
. In this stylesheet, the default code for the search box input form is overwritten with the
following block of custom code.






checked="checked" />


Include secure content

This conditional clause with tests the value of the access parameter, and then defines the
checkbox accordingly. When access is the default value of “p,” the unchecked box sets the value to “a” if
checked by the end user. If the value is already set to “a,” the checkbox is displayed checked.

For more information on the access query parameter, see the Search Protocol Reference.

Adding Secure Search Checkbox Code to an XSLT Stylesheet

To modify a stylesheet to replace the secure search radio buttons with a checkbox:

1.

Open the stylesheet in the Admin Console's XSLT Stylesheet Editor or your preferred editor.

2.

Scroll to the following section heading: