TrimWordsbyLen
trims a string to the whitespace closest to a given number of characters. It can return the string trimmed to the closest whitespace to the value given, or the last whitespace before, or the next after.
<MTEntryTitle TrimWordsbyLen="=15"> gives the closest
<MTEntryTitle TrimWordsbyLen="-15"> gives the one before
<MTEntryTitle TrimWordsbyLen="+15"> gives the one after
<MTEntryTitle TrimWordsbyLen="15"> is a shortcut format for closest

Leave a comment
Have a question? Please use the MT Forums. Notes submitted on documentation should pertain to tips & hints regarding documentation. Your note may be removed once its contents have been integrated into the body of the page.