Previous Chapter | Next Chapter | Up | Next Section | Contents

Truncation


The attributes size and etc can be used to truncate long strings. If the size attribute is specified, then the string to be inserted is truncated at the given length. If a space occurs in the second half of the truncated string, then the string is further truncated to the right-most space. After truncation, the value given for the etc attribute is added to the string. If the etc attribute is not provided, then " ... " is used. For example, if the value of the variable color is "red yellow orange green blue", then the tag:

<dtml-var spam size=10 etc="...">

inserts

red yellow...

Previous Chapter | Next Chapter | Up | Next Section | Contents