truncate problem
| From: | Jan van Vlimmeren | Date: | Tue, 15 Oct 2002 15:19:49 +0000 |
| Subject: | truncate problem | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6151@lists.php.net to get a copy of this message | ||
Hello,
I recently started using smarty and I seem to have a problem with the
truncate option.
This is the line that I have in the template:
{$sublinks[name]|truncate:120:"..."}
Yet my output is everything but this:
http://www.honden.be/beta
The first problem I encountered was that It didn't cut off after the amount
of characters I wanted (which was 40), only by upping it to 120 I got more
or less the result I wanted. Besides this, I'm not getting the trailing
'...' as I specified.
Any suggestions on this (smarty2.3.0)
Regards,
Jan van Vlimmeren