svn commit: r631396 - /lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Author: andreas
Date: Tue Feb 26 13:46:40 2008
New Revision: 631396

URL: http://svn.apache.org/viewvc?rev=631396&view=rev
Log:
Use Google to search site.

Modified:
    lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl

Modified: lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl
URL: http://svn.apache.org/viewvc/lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl?rev=631396&r1=631395&r2=631396&view=diff
==============================================================================
--- lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl (original)
+++ lenya/sandbox/modules/docustyle/xslt/beforeCache.xsl Tue Feb 26 13:46:40 2008
@@ -60,7 +60,7 @@
       </head>
       <body>
         <div id="page">
-          <lenya:navElement name="search"/>
+          <xsl:call-template name="searchForm"/>
           
           <div id="header">
             <div id="apacheBreadcrumb">
@@ -84,6 +84,19 @@
         </div>
       </body>
     </html>
+  </xsl:template>
+  
+  
+  <xsl:template name="searchForm">
+    <div id="search">
+      <form action="http://www.google.com/search" method="get" id="form-search">
+        <p>
+          <input type="hidden" name="sitesearch" value="lenya.apache.org"/>
+          <input class="searchfield" type="text" name="q" alt="Search field"/>
+          <input class="searchsubmit" type="submit" value="Search" name="input-go"/>
+        </p>
+      </form>
+    </div>
   </xsl:template>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.