Limit length of Template Fields

When having files with long names it is sometimes necessary to trim the name so it will fit in one line, for example in the File List Widget.

The output length of all template variables can be limited using the following syntax:


This limits the display name to 20 characters. If the name exceeds 20 characters, it will take the first 17 and append ‘…’, for example


Although the string length will never exceed the specified limit, the actual display width can vary due to variable-width fonts.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Leave a Reply

Your email address will not be published.