public
Description: An extension for Radiant CMS to support searching pages.
Homepage:
Clone URL: git://github.com/radiant/radiant-search-extension.git
saturnflyer (author)
Thu Mar 12 12:01:19 -0700 2009
commit  e4bd92f52b35222c1316f5b3c275534b5ad3407d
tree    107abd59beb95ae3e10a9a8b9270b744e2a06a0a
parent  2c16926f86344d2175b0fe1d5bb2814969b2d33b
name age message
file README Thu Dec 04 11:07:15 -0800 2008 Fixed show value in search box. Added highlight... [p8]
file Rakefile Thu Feb 05 20:08:43 -0800 2009 spec [saturnflyer]
directory app/ Loading commit data...
directory lib/ Wed Dec 03 02:15:06 -0800 2008 fixed migration (can probably be deleted beause... [p8]
file search_extension.rb Fri Jun 20 10:00:29 -0700 2008 Import from old repository. [seancribbs]
directory spec/ Thu Feb 05 20:08:43 -0800 2009 spec [saturnflyer]
directory test/ Fri Jan 16 05:56:52 -0800 2009 Added alt='search' attribute to input for secti... [p8]
README
= Search

   Ported by: Sean Cribbs
     Version: 0.1
 Description: A port of Oliver Baltzer's search behavior, with removal of the 
              live-preview options.

Requirements:
  None

Installation:
  This extension works by creating a new page type called "Search".  After you 
install it and re-start your web server, you should have a new type of page 
available.

 1) Download and install just like any other extension.
 2) Create a new page called "Search" (or whatever you want)
 3) Set the Page Type to "Search" and the Status to "Published"
 4) Take the sample code below and paste it into the body of the new page.
 5) Visit http://localhost:3000/search and enter a search term.
 6) Bask in the glow of a job well done.  :)

Example:
  Place everything between the SNIPs in the body of the "Search" page.  This 
will provide a very basic Search page, but it should show you everything you
need to know to make your own page better.

==================================== SNIP ====================================
<r:search:form submit="Search"/>

<r:search:initial>
  <strong>Enter a phrase above to search this website.</strong>
</r:search:initial>

<r:search:empty>
  <strong>I couldn't find anything named "<r:search:query/>".</strong>
</r:search:empty>

<r:search:results>
  Found the following pages that contain "<r:search:query/>".

  <ul>
  <r:search:results:each>
  <li><r:link/><br/>
      <r:search:highlight><r:content/></r:search:highlight></li>
  </r:search:results:each>
  </ul>
</r:search:results>
==================================== SNIP ====================================