View Single Post
  #1  
Old 10-26-2009, 06:43 AM
 
roblen roblen is offline
 

Senior Member
  
Join Date: Oct 2004
Posts: 114
 

Default Smarty Variable printing

Hi I am trying to print from the 180th character position using the smarty truncate function. Can only get it to print from starting starting position and not starting from the middle of the string.

is there a way of doing this with truncate or is there a another function.?

{$product.descr|truncate:85} this prints the first 85 characters. I need to be able to print from starting to ending positions

in php i would use substr

thanks
rob
__________________
X-Cart version 4.1.9
PHP 5.2.13 Details >>
GD bundled (2.0.34 compatible)
MySQL server 5.0.77-log
MySQL client 5.0.77
Web server Apache/2.2
Operation system Linux
Perl not found
XML parser (expat) found
Reply With Quote