limiting words in pisearch results

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
steve
Forum Members
Forum Members
Posts: 70
Joined: Mon Apr 11, 2005 12:31 pm

limiting words in pisearch results

Post by steve »

Hi,
Is it possible to limit the words in the pisearch results?
Steve
steve
Forum Members
Forum Members
Posts: 70
Joined: Mon Apr 11, 2005 12:31 pm

Re: limiting words in pisearch results

Post by steve »

Hi, just a polite nudge  ;D

no ideas on how to do this anybody?

Steve
fr3nch13

Re: limiting words in pisearch results

Post 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}
steve
Forum Members
Forum Members
Posts: 70
Joined: Mon Apr 11, 2005 12:31 pm

Re: limiting words in pisearch results

Post by steve »

Thanks fr3nch13,
I'll givi it a go.
Steve  ;D
steve
Forum Members
Forum Members
Posts: 70
Joined: Mon Apr 11, 2005 12:31 pm

Re: limiting words in pisearch results

Post by steve »

Fantastic! that worked a treat
Thanks fr3nch13
Post Reply

Return to “CMSMS Core”