|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
stone Smarty n00b
Joined: 30 Sep 2003 Posts: 1
|
Posted: Tue Sep 30, 2003 5:53 pm Post subject: truncate news |
|
|
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 |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Tue Sep 30, 2003 7:50 pm Post subject: |
|
|
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 |
|
|
|
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
|