Re: [SMARTY] truncate problem
| From: | Jan van Vlimmeren | Date: | Tue, 15 Oct 2002 16:46:15 +0000 |
| Subject: | Re: [SMARTY] truncate problem | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6162@lists.php.net to get a copy of this message | ||
I tried that. If I do that it doesn't display sublinks whatsoever.
"Gary Loescher" <gary@loescher.org> wrote in message
news:000801c27464$d78eb240$0aebf80c@cb767813a...
Could it be a problem with the way you're referencing the name
element? maybe try {$sublinks.name|truncate:40:"..."}
Gary
>-----Original Message-----
>From: Jan van Vlimmeren [mailto:herman.van.vlimmeren@pandora.be]
>Sent: Tuesday, October 15, 2002 10:20 AM
>To: smarty-general@lists.php.net
>Subject: [SMARTY] truncate problem
>
>
>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
>
>
>
>--
>Smarty General Mailing List (http://smarty.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>