[TYPO3-dev] Flexform select list populated from MySQL table
Jigal van Hemert
jigal at xs4all.nl
Tue May 24 13:34:19 CEST 2011
Hi,
On 24-5-2011 13:24, Conor Hackett wrote:
> Is it possible to dynamically create a FlexForm dropdown list using a
> MySQL tables records?
Sure. Something like:
<myField>
<TCEforms>
<label>LLL:EXT:myExt/pi1/locallang.xml:flexform.myField</label>
<config>
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">--</numIndex>
<numIndex index="1"></numIndex>
</numIndex>
</items>
<itemsProcFunc>tx_myext_userfunc->getMyFieldList</itemsProcFunc>
<allowNonIdValues>1</allowNonIdValues>
<size>10</size>
<maxitems>20</maxitems>
<minitems>0</minitems>
</config>
</TCEforms>
</myField>
will do the job. Look up the various possibilities in the TCA documentation.
--
Kind regards / met vriendelijke groet,
Jigal van Hemert.
More information about the TYPO3-dev
mailing list