[TYPO3] Render entries in tt_address description field as <ul> list

Robert Markula robert.markula at gmx.net
Tue Feb 6 09:49:47 CET 2007


Robert Markula schrieb:
> Hi Sander!
> Thanks for the code, but this snippet will wrap the whole content of the 
> description field in <li>'s:
> 
> <ul>
>   <li>
>     Line 1
>     Line 2
>     Line 3
>   </li>
> </ul>
> 
> I need each line in this field to be wrapped in seperate <li>'s:
> 
> <ul>
>   <li>Line 1</li>
>   <li>Line 2</li>
>   <li>Line 3</li>
> </ul>
> 
> And I don't know how to do that.

Ummm... must be something like

tt_address.50 = TEXT
tt_address.50 {
   field = description
   split {
     token.char = 10
     cObjNum = 1
     1.current = 1
     1.wrap = <li>|</li>
   }
}

but this doesn't affect the output.

What is the correct place to use that with css_styled_content?

Cheers,
Ro


More information about the TYPO3-english mailing list