Support Forums

Limit Smarty

This is a discussion on Limit Smarty within the Technical Support forums, part of the Technical Support Forums category; Hi, I currently use: Code: <meta name="Description" content="{$description|nl2br|replace:'<br />':' '} How can i limit output to 200 charactors? Cheers, Nick...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 01-02-2009, 07:55 AM   #1
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Exclamation Limit Smarty

Hi,
I currently use:
Code:
<meta name="Description" content="{$description|nl2br|replace:'<br />':' '}
How can i limit output to 200 charactors?
Cheers,
Nick
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template

Last edited by bowers01; 01-02-2009 at 07:57 AM.
bowers01 is offline  
Old 01-02-2009, 08:21 AM   #2
Customer
 
Join Date: May 2008
Posts: 129
Rep Power: 17
ombre is on a distinguished road
Default

Quote:
Originally Posted by bowers01
Hi,
I currently use:
Code:
<meta name="Description" content="{$description|nl2br|replace:'<br />':' '}
How can i limit output to 200 charactors?
Cheers,
Nick
have you used truncate

Smarty - truncate
__________________
Version 4.2.3 - in production with over 40.000 ads
  • Have a developer license to sell, only 99 $
  • Previous Next Mod for your website
ombre is offline  
Old 01-02-2009, 08:38 AM   #3
Genius At Work
 
bowers01's Avatar
 
Join Date: May 2008
Location: Geelong, Victoria, Australia
Posts: 1,089
Rep Power: 36
bowers01 is on a distinguished road
Default

That did the trick,
Thanks
__________________
Nick Bowers
68c v4.1.10 Developer Custom Template
bowers01 is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Limit the # of ads per usergroups? z0rg Technical Support 7 03-20-2008 09:24 AM


All times are GMT -4. The time now is 12:31 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0