Google Search Appliance Creating the Search Experience Instrukcja Użytkownika Strona 121

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 141
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 120
Google Search Appliance: Creating the Search Experience Advanced Customization Topics 121
4. Replace the default code with the custom code shown below in boldface and bracketed by start/
end comments below.This replaces the default radio button's
choose
clause with similar logic
appropriate for a checkbox.
<xsl:if test="$show_secure_radio != '0'">
<tr>
<td colspan="2">
<font size="-1">
<!-- Start paste. Between here and End paste is the correct
location for the secure search checkbox code. -->
<xsl:choose>
<xsl:when test="$access='p'">
<input type="checkbox" name="access" value="a" />
</xsl:when>
<xsl:otherwise>
<input type="checkbox" name="access" value="a"
checked="checked" />
</xsl:otherwise>
</xsl:choose>
Include secure content
<!-- End paste. Between here and Start paste is the correct
location for the secure search checkbox code. -->
</font>
</td>
</tr>
</xsl:if>
5. Edit the text or font as you choose. Do not change any of the code inside the
choose
statement.
6. Save the stylesheet. If you are using an external editor other than the Admin Console's XSLT
Stylesheet Editor, you must also import the stylesheet into the associated front end.
7. Verify the changes by opening the search query page and performing a test search on secure
content.
Specifying Query Parameters with XSLT
The default search box for a front end is defined by the associated XSLT stylesheet. You can modify the
XSLT stylesheet to include selected parameters in every query submitted from the query box in a front
end. Valid parameters are documented in the Search Protocol Reference.
Though it is not immediately apparent, the search box in the “Inline Frame Example page” on page 114
is customized in this way. Each query submitted from the search box explicitly retrieves selected meta
tag values and limits the number of results to optimize the limited page space.
Przeglądanie stron 120
1 2 ... 116 117 118 119 120 121 122 123 124 125 126 ... 140 141

Komentarze do niniejszej Instrukcji

Brak uwag