# Search Extension

**URL:** <https://www.ruby-forum.com/t/search-extension/107520>\
**Category:** Radiant CMS\
**Created:** [June 22, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/search-extension/107520 "2007-06-22T14:36:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [June 22, 2007, 2:36pm UTC](https://www.ruby-forum.com/t/search-extension/107520/1 "2007-06-22T14:36:52Z")

</div>

Hy folks,

After implementing the extension: Search in my site, I have tried to use  
\<r:truncate\_and\_strip [length=“100”] /\> tag but It doesn’t work how I  
want.

The problem: I need to display a snippet of the found pages and i tried  
this piece of code:

\<r:search:results:each\>

### 

but it returns much more than 50 characters.

I need some help, please!  
Can you give me an example?

Cheers

crick

---

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [June 22, 2007, 2:41pm UTC](https://www.ruby-forum.com/t/search-extension/107520/2 "2007-06-22T14:41:24Z")

</div>

You mis-spelled length.

unless that isn’t a straight copy and past from your code.

James Thompson  
IT Director & Web Programmer  
Stewart & Associates, Inc.  
550 West Kentucky Street  
Louisville, KY 40203  
(502) 583.5502  
removed\_email\_address@domain.invalid  
[http://www.stewartaa.com/](http://www.stewartaa.com/)

---

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [June 22, 2007, 2:43pm UTC](https://www.ruby-forum.com/t/search-extension/107520/3 "2007-06-22T14:43:24Z")

</div>

If this is your actual code, there is a typo in it. “length” is  
mispelled. Hopefully that is it!

Keith B.  
Tel: +49-7731-79838380  
removed\_email\_address@domain.invalid  
[http://keithbingman.com](http://keithbingman.com)

---

<div class="post-metadata">

**Author:** ![crick](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/9f8e36/32.png) [@crick](https://www.ruby-forum.com/u/crick)\
**Post date:** [June 22, 2007, 3:12pm UTC](https://www.ruby-forum.com/t/search-extension/107520/4 "2007-06-22T15:12:48Z")

</div>

Nice work guys, you got it!  
Sometimes I am very absent-minded.  
You have been very useful and quick.

Thank you very much.

Cheers
