Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

truncate news

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
stone
Smarty n00b


Joined: 30 Sep 2003
Posts: 1

PostPosted: Tue Sep 30, 2003 5:53 pm    Post subject: truncate news Reply with quote

hello, i have a news page, and i would like to truncate these news to a certain number of chars/words if needed and if the news is truncated then i want to show a "Show More" link to another page with the full news but if the news isn't truncated then i don't want to show it, any idea on how i can do this? Thanks
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Tue Sep 30, 2003 7:50 pm    Post subject: Reply with quote

Pass your "show more" text as the second parameter to truncate. If you need something more dynamic, a custom function may be in order.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP