# Search Functionality

**URL:** <https://www.ruby-forum.com/t/search-functionality/117710>\
**Category:** Radiant CMS\
**Created:** [October 19, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/search-functionality/117710 "2007-10-19T16:21:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [October 19, 2007, 4:21pm UTC](https://www.ruby-forum.com/t/search-functionality/117710/1 "2007-10-19T16:21:21Z")

</div>

I am trying to include search functionality for my radiant install and  
have  
installed the Search extension to see what it can do. However, I don’t  
think it’s quite complete or something is very wrong. It loads the  
extension and it shows up in the Admin Extensions list just fine, but I  
can’t get it to recognize the \<r:search\> tag. I’ve restarted the server  
several times, using both WEBrick and Mongrel, and poured through the  
log  
files - nowhere does anything mention “Search” at all. ☹ I did the  
Make  
Your Own Link Roll Extension tutorial and it works great so I don’t  
think my  
extension system is broken. Can anyone give my any tips. Sean?

Thanx!  
Richard

---

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [October 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/search-functionality/117710/2 "2007-10-19T16:31:52Z")

</div>

Hmmm…OK now I kinda see whats going on. The extension dynamically  
creates  
a new page object called “Search”. So to use it you have to create a  
new  
page of type “Search” and then include the \<r:search:???\> tags there.  
Hmmm…now how do the tags work?

Later…  
Richard

---

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [October 19, 2007, 4:49pm UTC](https://www.ruby-forum.com/t/search-functionality/117710/3 "2007-10-19T16:49:09Z")

</div>

OK now I have it working. Basically, you create a Search page and use  
something like this as the body:

# ===================================== SNIP

\<r:search:empty\>

### Nothing found for "". Maybe you should try again.

\<r:search:results\>  
Found the following pages that contain “\<r:search:query/\>”.

- - - 

# ===================================== SNIP

Now, how can I update the README file to include this so the next  
schmuck  
doesn’t have to go through this? 🙂

Thanx!  
Richard

---

<div class="post-metadata">

**Author:** ![richardchaven](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e480ec/32.png) [@richardchaven](https://www.ruby-forum.com/u/richardchaven)\
**Post date:** [October 19, 2007, 5:16pm UTC](https://www.ruby-forum.com/t/search-functionality/117710/4 "2007-10-19T17:16:48Z")

</div>

Richard,

Submit a patch to the Trac ([dev.radiantcms.org](http://dev.radiantcms.org)) and we’ll get it fixed  
right away.

Sean
