Created
February 18, 2014 15:58
-
-
Save dustinwalker/9073721 to your computer and use it in GitHub Desktop.
Truncate field and add ellipse at end
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
# FIELD.NAME is name of field. | |
#} | |
{{ FIELD.NAME|length > 155 ? FIELD.NAME|slice(0, 155)|striptags ~ ' ...' : FIELD.NAME }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment