You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by fu...@apache.org on 2004/12/30 17:37:09 UTC
cvs commit: jakarta-tomcat-site/xdocs-faq tomcat-faq.xsl
funkman 2004/12/30 08:37:09
Modified: xdocs-faq tomcat-faq.xsl
Log:
Add google search to the footer to allow search of the FAQ.
build.bat still needs to be run and the html output
needs committed before the change is made effective.
Can anyone review to ensure we are allowed to do this?
Revision Changes Path
1.2 +34 -1 jakarta-tomcat-site/xdocs-faq/tomcat-faq.xsl
Index: tomcat-faq.xsl
===================================================================
RCS file: /home/cvs/jakarta-tomcat-site/xdocs-faq/tomcat-faq.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- tomcat-faq.xsl 12 Jun 2003 00:31:14 -0000 1.1
+++ tomcat-faq.xsl 30 Dec 2004 16:37:09 -0000 1.2
@@ -158,6 +158,39 @@
</td>
</tr>
+ <xsl:if test="$project-menu = 'menu'">
+ <tr>
+ <td colspan="2" align='center'>
+ <form method="GET" name='searchForm' onsubmit="return t_search()" action="http://www.google.com/search">
+ <input type="hidden" name="ie" value="UTF-8"/>
+ <input type="hidden" name="oe" value="UTF-8"/>
+ <table bgcolor="#FFFFFF"><tr><td>
+ <a href="http://www.google.com/">
+ <img src="http://www.google.com/logos/Logo_40wht.gif"
+ border="0" alt="Google" align="absmiddle"/></a>
+ <input type="text" name="q" size="25" maxlength="255" value=""/>
+ <input type="submit" name="btnG" value="Google Search"/>
+ </td></tr></table>
+ <script>
+ /* Append inurl:tomcat/faq site:jakarta.apache.org */
+ function t_search() {
+ if(!document.searchForm.q.value.match(/inurl:tomcat\/faq/)) {
+ document.searchForm.q.value = document.searchForm.q.value + " inurl:tomcat/faq site:jakarta.apache.org";
+ }
+ return true;
+ }
+ </script>
+ </form>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <hr noshade="" size="1"/>
+ </td>
+ </tr>
+ </xsl:if>
+
+
<xsl:comment>PAGE FOOTER</xsl:comment>
<tr><td colspan="2">
<div align="center"><font color="{$body-link}" size="-1"><em>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-tomcat-site/xdocs-faq tomcat-faq.xsl
Posted by Tim Funk <fu...@joedog.org>.
So you don't have to build it yourself, a sample of the site in action can be
found here:
http://cvs.apache.org/~funkman/docs/faq/
-Tim
funkman@apache.org wrote:
> funkman 2004/12/30 08:37:09
>
> Modified: xdocs-faq tomcat-faq.xsl
> Log:
> Add google search to the footer to allow search of the FAQ.
> build.bat still needs to be run and the html output
> needs committed before the change is made effective.
>
> Can anyone review to ensure we are allowed to do this?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org