]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/plugins/google/discussion.mdwn
Merge branch 'filter-full'
[git.ikiwiki.info.git] / doc / plugins / google / discussion.mdwn
index c1815766580affcfa87692688c36b27d6e9227e5..e664f5723a86b427494b6dc85f8c610089232bcf 100644 (file)
@@ -3,20 +3,23 @@ which produces valid HTML but invalid XHTML.
 This is not very good since the default ikiwiki
 templates produce XHTML instead of HTML.
 
-To produces valid XHTML, you need to edit
-googleform.tmpl (in e.g. /usr/share/ikiwiki/templates):
-
-
-    --- googleform.tmpl.orig    2009-02-13 02:47:00.000000000 -0600
-    +++ googleform.tmpl 2009-02-13 02:47:40.000000000 -0600
-    @@ -1,6 +1,6 @@
-     <form method="get" action="http://www.google.com/search" id="searchform">
-      <div>
-    -  <input name="sitesearch" value="<TMPL_VAR SITEFQDN>" type="hidden">
-    -  <input name="q" value="" id="searchbox" size="16" maxlength="255" type="text">
-    +  <input name="sitesearch" value="<TMPL_VAR SITEFQDN>" type="hidden" />
-    +  <input name="q" value="" id="searchbox" size="16" maxlength="255" type="text" />
-      </div>
-     </form>
-
-Just tow tiny changes.
+> Fixed, thanks for the patch! --[[Joey]] 
+
+It works to pass the whole wiki baseurl to Google, not just the
+domain, and appears to be legal. I've got a wiki that'd benefit
+(it's a few directories down from the root). Can the plugin be
+tweaked to do this? --[[schmonz]]
+
+> Done. --[[Joey]] 
+
+The main page said:
+
+> Also, if the same domain has other content, outside the wiki's
+> content, it will be searched as well.
+
+Is it still true now? (Or this statement is out of date?)  --[weakish]
+
+[weakish]: http://weakish.pigro.net
+
+> I checked, and it's never been true; google is given the url to the top
+> of the wiki and only searches things in there. --[[Joey]]