RE: [SMARTY] truncate problem

From: Date: Tue, 15 Oct 2002 16:06:37 +0000
Subject: RE: [SMARTY] truncate problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6158@lists.php.net to get a copy of this message
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 >

« previous php.smarty.general (#6158) next »