[TYPO3] Render entries in tt_address description field as <ul> list
Robert Markula
robert.markula at gmx.net
Tue Feb 6 08:23:41 CET 2007
Sander van Gelderen wrote:
> temp.tt_address = COA
>
> temp.tt_address.wrap = <ul>|</ul>
>
> temp.tt_address.10 = TEXT
>
> temp.tt_address.10 {
>
> field = description
>
> case = upper
>
> wrap = <li> | </li>
>
> }
>
>
> page.10 = RECORDS
>
> page.10.source = 3,1,5
>
> page.10.tables = tt_address
>
> page.10.conf.tt_address < temp.tt_address
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.
Cheers,
Ro
More information about the TYPO3-english
mailing list