Hallo zusammen,
ich benutze die tt_address um mir eine einfach Adressliste auszugeben. Typoscript ist entsprechend der Datei ext_typoscript_setup.txt angepasst.
Wie bekomme ich jetzt aber einen wrap um die gesamte Liste hin?
Viele Grüße
FlashKasper
Hallo zusammen,
ich benutze die tt_address um mir eine einfach Adressliste auszugeben. Typoscript ist entsprechend der Datei ext_typoscript_setup.txt angepasst.
Wie bekomme ich jetzt aber einen wrap um die gesamte Liste hin?
Viele Grüße
FlashKasper
tt_address.wrap=...
Hi Steffenk,
das dachte ich auch, aber das wird mir irgendwie nicht mitausgegeben.
Packe mal mein Typoscript hier rein, vielleicht bringt uns das weiter:
tt_address >
tt_address = COA
tt_address.wrap= 45645 | 547745
tt_address {
10 = COA
wrap = <table border="0" cellpadding="0" cellspacing="0"><tr><td class="tabellebold">Bauort</td><td class="tabellebold">Straße</td><td class="tabellebold">Objekt</td><td class="tabellebold">Name</td><td class="tabellebold">Vorname</td></tr><tr>|</tr></table>
10 {
10 = COA
10.wrap = <tr><td height="3" colspan="5"></td></tr>
20=COA
20 {
# Bauort
10 = COA
10 {
wrap = <td class="tabellentext" width="91">|</td>
10=TEXT
10.field = name
}
# Straße
16 = COA
16 {
wrap = <td class="tabellentext" width="136">|</td>
10=TEXT
10.field= address
}
# Objekt
17 = COA
17 {
wrap = <td class="tabellentext" width="53">|</td>
10=TEXT
10.field= city
}
# Name
18 = COA
18 {
wrap = <td class="tabellentext" width="94">|</td>
10=TEXT
10.field= title
}
# Vorname
19 = COA
19 {
wrap = <td class="tabellentext" width="104">|</td>
10=TEXT
10.field= company
}
}
}
}
## Transfering to the tt_content.list object:
tt_content.list.20.0 >
tt_content.list.20.0 = CASE
tt_content.list.20.0.key.field = layout
tt_content.list.20.0.0 = CONTENT
tt_content.list.20.0.0 {
table = tt_address
select.pidInList.field = pages
select.orderBy = name asc
}
tt_address.wrap= 45645 | 547745 -> Das verursacht überhaupt nichts.
Grüße
FlashKasper
Habe die Lösung gerade selbst gefunden.
Einfach um
tt_content.list.20.0.0.wrap = <table border="0" cellpadding="0" cellspacing="0"><tr><td class="tabellebold">Bauort</td><td class="tabellebold">Straße</td><td class="tabellebold">Objekt</td><td class="tabellebold">Name</td><td class="tabellebold">Vorname</td></tr> | </table>
den wrap setzen.
Grüße
FlashKasper