简体   繁体   中英

Typo3/Typoscript : Content select, keep breaklines

This is my (very simple) code :

table = my_table
select.selectFields = teaser
renderObj = COA_INT
renderObj {

10 = TEXT
10.field = teaser

}

In fact a breakline is present in the teaser field (visibile in phpMyAdmin) but my code doesn't keep it. Is there a way to keep it when rendering the text via renderObj ?

Thanks for your help !

If you need breaklines in HTML you can use the br function in TypoScript. See: https://docs.typo3.org/typo3cms/TyposcriptReference/Functions/Stdwrap/Index.html?highlight=nl2br#br

10 = TEXT
10.field = teaser
10.br = 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM