Based on [string_truncate] tag created by John Burwell, gf_lowtext returns truncated text to specified chars without truncate words, and add a suffix at the end of the string. It takes three params: an input -text, the lenght of the output and an optional suffix for the output. If the result ends with truncated word, this tag will remove the remaining chars, and will return a clean string.
Parameters
-chars
integer, required
The length of the output string
-suffix
string, optional
A string to append at the end
-text
string, required
The text to be truncated
Sample Usage
[gf_lowtext: -text=($text), -chars=40, -suffix='...']
example:
gf_lowtext:
-text='Click the "Download" button below to retrieve a copy of this tag',
-chars=40,
-suffix='...'
Only truncate:
Click the "Download" button below to retr...
Truncate and Clean
Click the "Download" button below to...
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.