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

Robert Markula robert.markula at gmx.net
Fri Feb 2 12:48:58 CET 2007


Sander van Gelderen schrieb:
> Robert Markula schreef:
>> Hi!
>> Every tt_address record has a 'Description' field.
>> For my purpose I'd like each line in this field to be wrapped as a 
>> list entry.
>>
>> E.g. I write this in the description field:
>>
>> Line 1
>> Line 2
>> Line 3
>>
>> This should get rendered as an unordered list in the FE:
>>
>> <ul>
>>   <li>Line 1</li>
>>   <li>Line 2</li>
>>   <li>Line 3</li>
>> </ul>
> 
> Have a look at
> 
> http://typo3.org/documentation/document-library/core-documentation/doc_core_tsbyex/0.0.16/view/9/6/ 
> 
> 
> There is an example using tt_address there, you just need to adjust the 
> wrap's
> 
> Sander

Hi Sander!
Okay, that example shows me how to get a field from the database to the 
frontend.

But I'd like to have each line in this single field wrapped with tags. 
Not the whole field.

Cheers,
Ro


More information about the TYPO3-english mailing list