werc-1.5.0-tweaks

Tweaks for the werc website builder created by the mad architect Uriel
Log | Files | Refs | README

index.md (1109B)


      1 duckduckgo - Simple sitesearch using DuckDuckGo.com
      2 ===================================
      3 
      4 duckduckgo is a very simple app that allows you to redirect a path 
      5 (by default /_search/) to a query to duckduckgo.com restricted to 
      6 your site.
      7 
      8 Currently, to change that path requires editing the app.  In the
      9 future, the path will be a configuration option.
     10 
     11 Configuration
     12 -------------
     13 
     14 First, create the search path and the _werc directory under it:
     15 
     16 	mkdir -p /www/werc/sites/MYSITE/_search/_werc/
     17 
     18 Then, enable the duckduckgo app in that directory:
     19 
     20 	echo 'conf_enable_duckduckgo' > /www/werc/sites/MYSITE/_search/_werc/config
     21 
     22 Next, deploy the search form somewhere on your site.  This example puts
     23 it in your footer:
     24 
     25 	mkdir -p /www/werc/sites/MYSITE/_werc/lib/
     26 	cp /www/werc/apps/search/footer.inc.sample /www/werc/sites/MYSITE/_werc/lib/footer.inc
     27 
     28 Demo
     29 ----
     30 
     31 For a demo of this app, see the footer of your favorite cat-v.org site.
     32 
     33 TODO
     34 ----
     35 
     36 * Make the search path a configuration option
     37 * Provide a template for non-footer deployment
     38 * Enable the search path itself to serve a search form to GET requests
     39