[TYPO3-dev] Flexform select list populated from MySQL table

Christian Weiske christian.weiske at netresearch.de
Tue May 24 13:27:33 CEST 2011


Hello Conor,


> Is it possible to dynamically create a FlexForm dropdown list using a 
> MySQL tables records?
> 
> I've been doing some searching and couldn't find anything? Surely
> this is a standard enough requirement??

This is for content elements, but you can adapt it to any table known
to typo3:

         <field_content_apply>
           <TCEforms type="array">
             <config type="array">
               <type>group</type>
               <internal_type>db</internal_type>
               <allowed>tt_content</allowed>
               <size>1</size>
               <maxitems>1</maxitems>
               <minitems>0</minitems>
               <multiple>0</multiple>
               <show_thumbs>1</show_thumbs>
             </config>
             <label>LLL:EXT:foo/locallang_db.xml:tt_content.pi_flexform.content_apply</label>
           </TCEforms>
         </field_content_apply>


-- 
Viele Grüße
Dipl.-Inf. Christian Weiske

Senior Developer
Netresearch GmbH & Co. KG





More information about the TYPO3-dev mailing list