Forum: Radiant CMS truncate_and_strip tag of search extension

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Fabrizio T. (Guest)
on 2007-06-21 19:27
Hy everybody,
in my radiant site I'm using the search extension and it's works very
well.
I've tried to use the <r:truncate_and_strip [length="100"] /> tag but I
don't understand very well how does it work.
I need to display a snippet of the found pages and i tried this piece of
code:

<r:search:results:each>
 <h3><r:link/></h3>
  <r:truncate_and_strip lenght="50"><r:content /></r:truncate_and_strip>
</r:search:results:each>

but it dosen't work very well.
Can someone explain me how does this tag works maybe with a small
example?

Thanks and greatings
This topic is locked and can not be replied to.