I have this code:
{if $data|@count gt 0}
{section name=field loop=$data}
{$data[field].description|substr:0:120}...
<hr/>
{/section}
{/if}
It shows abc123 abc123 a....
How can I get the words not to cut?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why don’t you use the truncate modifier http://www.smarty.net/docsv2/en/language.modifier.truncate
You can set it not to break on a word.