kevinsuave Posted June 30, 2015 Share Posted June 30, 2015 Im showing latest forum posts in a block on my frontpage. However, instead of showing the entire title of the post, I only want it to show a max number of characters. How would I go about doing this?Code is as follows:{wordbreak="$topic->title"}Thanks! Link to comment Share on other sites More sharing options...
kevinsuave Posted July 1, 2015 Author Share Posted July 1, 2015 Bump. Anyone? Link to comment Share on other sites More sharing options...
kevinsuave Posted July 4, 2015 Author Share Posted July 4, 2015 There's gotta be an easy solution for this? I tried {wordbreak="$topic->title" length="10"} but that didn't work. Link to comment Share on other sites More sharing options...
kevinsuave Posted July 5, 2015 Author Share Posted July 5, 2015 Hate having to keep bumping this, but I am kinda desperate. Anyone please? Link to comment Share on other sites More sharing options...
kevinsuave Posted July 5, 2015 Author Share Posted July 5, 2015 I've now put data-ipstruncate-size="1 lines" in the div that contains the title, but that didn't work.. Link to comment Share on other sites More sharing options...
Adriano Faria Posted July 5, 2015 Share Posted July 5, 2015 Try:{truncate="$topic->title" length="50"} Link to comment Share on other sites More sharing options...
kevinsuave Posted July 5, 2015 Author Share Posted July 5, 2015 Thank you, kind sir. That worked like a charm! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.