Page 1 of 1

limiting words in pisearch results

Posted: Sun Jan 29, 2006 10:51 pm
by steve
Hi,
Is it possible to limit the words in the pisearch results?
Steve

Re: limiting words in pisearch results

Posted: Tue Feb 07, 2006 3:52 pm
by steve
Hi, just a polite nudge  ;D

no ideas on how to do this anybody?

Steve

Re: limiting words in pisearch results

Posted: Tue Feb 07, 2006 8:10 pm
by fr3nch13
Smarty have a function which comes with it by default called truncate.

http://smarty.php.net/manual/en/languag ... uncate.php

i think it is part of CMSMS as well.
Pisearch has a template in tmp/templates directory. edit that page and the the below code

Code: Select all

{$entry->details| truncate}

Re: limiting words in pisearch results

Posted: Wed Feb 08, 2006 11:17 am
by steve
Thanks fr3nch13,
I'll givi it a go.
Steve  ;D

Re: limiting words in pisearch results

Posted: Fri Feb 10, 2006 9:46 pm
by steve
Fantastic! that worked a treat
Thanks fr3nch13