SMARTY template display

Starquest321
Starquest321 used Ask the Experts™
on
I need someone who is familiar with SMARTY template design to help me implement the setlimit text on the full description to say 200 characters....limited_text(200.

I tried doing it myself but was unsuccessful. I am including the following code.
site-search.html
site-search.php
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi
truncate,

 {$getTopiclistDetails.topic_title|sslash|truncate:67|wordwrap:40:"<br />":true}

wht i got u is that u want to display only 200 characters and later it should display ...
right?
then use above code.
If no then pls explain

Author

Commented:
You are right . .. but in which file is this located?
hi

{$articleTitle|truncate:200:'..':true:true}

even this will work but i had given u above since it would even remove ur wordwrap.
remove sslash it would not work.
its used for strip slash

eg:

{$articleTitle|truncate:200}
displays the first 200 character .... like that you can modify according to the need
i hope below link may help you
http://www.smarty.net/manual/en/language.modifier.truncate.php
hi,
wherever ur description comes
say suppose

$table.desc is ur description which ur displaying then use this one.

{$table.desc|truncate:200:"...."}



Author

Commented:
I am sorry - but can you be more specific. I cannot locate that line of code. I had attached two files. In which file is it located?

Author

Commented:
Can you please post the line of code from the html which needs to be modified so I can copy and paste? Much appreciated.
hi,
378-379

i thnk u have only one desc if more pls let us know, the variable name only
      <a href="{$listing_url[var]}"><strong class="resultHeading">{$listing_title[var]}</strong></a><br />
                  
                  {$listing_full_desc[var]|truncate:200:"...."}
<br />

Author

Commented:
MUCH MUCH APPRECIATED. IT  WORKS!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial