[TYPO3-german] f:form.select options TypoScript

Hauke Haller post at haukehaller.de
Sun Feb 5 15:25:14 CET 2017


Moin,
kann man das options in f:form.select dynamisch per TS füllen? Erwartet
wird da ja ein Array.

Soetwas funktioniert:
<f:form.select options="{foo:'bar'}" />

Aber so gehts nicht (wird nicht als Array erkannt):

<f:form.select options="{f:cObject(typoscriptObjectPath:
'lib.selectOptions')}"/>

lib.selectOptions  = COA
lib.selectOptions {
   # stdWrap.wrap = {|}
     10 = TEXT
     10.value = foo
     10.wrap = |:

     20 = TEXT
     20.value = bar
     20.wrap = '|',
}


..das wäre so schön einfach. Oder geht das doch irgendwie?

Hauke


More information about the TYPO3-german mailing list