forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scherler, Thorsten" <thors...@apache.org>
Subject Re: [JIRA] Commented: (FOR-294) Search box searches whole internet rather than site
Date Sat, 18 Sep 2004 10:29:52 GMT
issues@cocoondev.org wrote:
> The following comment has been added to this issue:
> 
>      Author: Clay Leeds
>     Created: Fri, 17 Sep 2004 9:41 AM
>        Body:
> This problem occurs in my own project as well. When was this fixed?
> ---------------------------------------------------------------------

Author: thorsten
Date: Thu Sep  9 15:47:28 2004
New Revision: 43634

Modified:
    forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl
    forrest/trunk/src/core/fresh-site/src/documentation/skinconf.xml
Log:
Fixed the domain bug of the searchbox. The domain was not parsed to the 
searchsite hidden field of google. I also explaind a wee bit the @domain.

Modified: forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl 
(original)
+++ forrest/trunk/src/core/context/skins/pelt/xslt/html/site2xhtml.xsl 
Thu Sep  9 15:47:28 2004
@@ -178,7 +178,7 @@
              <div class="searchbox">
                  <form class="roundtopsmall" method="get" 
action="http://www.google.com/search">
                      <input type="hidden"
-                    name="sitesearch" 
value="{$config/searchsite-domain}"/>
+                    name="sitesearch" value="{$config/search/@domain}"/>
                      <input type="text" id="query" name="q" size="15"
                      value="Search the site:"
                      onFocus="getBlank (this, 'Search the 
site:');"/>&#160;

Modified: forrest/trunk/src/core/fresh-site/src/documentation/skinconf.xml
==============================================================================
--- forrest/trunk/src/core/fresh-site/src/documentation/skinconf.xml 
(original)
+++ forrest/trunk/src/core/fresh-site/src/documentation/skinconf.xml	Thu 
Sep  9 15:47:28 2004
@@ -31,7 +31,8 @@
      Add box-location="alt" to move the search box to an alternate location
      (if the skin supports it) and box-location="all" to show it in all
      available locations on the page.  Remove the <search> element to show
-    no search box.
+    no search box. @domain will enable sitesearch for the specific 
domain with google.
+    In other words google will search the @domain for the query string.
    -->
    <search name="MyProject" domain="mydomain"/>



Mime
View raw message