You are here:   » Home » Documentation » Details » How-To » DTML/Products » Home

Display of Line Breaks from text fields

Author: F. Hoffmann, 2003/05/20

The contents of text fields (e.g. with special objects or TOC list templates) are not rendered with the line breaks (CR/LF) although they were inserted when creating the text and are visible in the editorial interface.

Solution: DTML allows among others an accordingly modified output of variable values with diverse attributes like e.g. newline_to_br.

<-- Example for output of line breaks -->
<dtml-var "getObjProperty('attr_dc_description',REQUEST)" 
newline_to_br>

Comment: Further often used attributes are a.o.
html_quote
lower
upper
capitalize
url