[TYPO3-german] tt_address Feld als ul-Liste generieren

Robert Markula robert.markula at gmx.net
Thu Mar 1 10:27:36 CET 2007


JoH asenau schrieb:
> Geht mit der stdWrap Funktion split:
> 
> temp.blah = CONTENT
> temp.blah {
>     table = tt_address
>     select {
>         # hier ggf. pidInList und
>         # weitere select Anweisungen
>     }
>     renderObj = COA
>     renderObj {
>         wrap = <ul>|</ul>
>         10 = TEXT
>         10.field = description
>         10.split {
>             token.char = 10
>             # char = 10 trennt den Block
>             # anhand von Zeilenschaltungen
>             cObjNum = 1
>             1 = TEXT
>             1.current = 1
>             1.wrap = <li>|</li>
>         }
>     }
> }

Danke Joey, es klappt!
Als Referenz (vielleicht hilft es ja dem einen oder anderen), wenn man 
die Extension 'Groups for tt_address' (addressgroups) einsetzt:

plugin.tx_addressgroups_pi1 {
   # Other extension settings

   # Wrap all entries in the 'description'-field as list (<ul>)
   # Notice: rename 'template1' with your template filename
   # without the filename extension
   templates.template1 = COA
   templates.template1.description {
     wrap = <ul>|</ul>
     split {
       token.char = 10
       cObjNum = 1
       1 = TEXT
       1.current = 1
       1.wrap = <li>|</li>
     }
   }
}

Viele Grüße,
Ro


More information about the TYPO3-german mailing list