This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
README | Thu Dec 04 11:07:15 -0800 2008 | |
| |
Rakefile | Thu Feb 05 20:08:43 -0800 2009 | |
| |
app/ | Tue Nov 03 06:15:39 -0800 2009 | |
| |
lib/ | Wed Dec 03 02:15:06 -0800 2008 | |
| |
search_extension.rb | Fri Jun 20 10:00:29 -0700 2008 | |
| |
spec/ | Thu Feb 05 20:08:43 -0800 2009 | |
| |
test/ | Fri Jan 16 05:56:52 -0800 2009 |
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 ====================================







