[TYPO3-english] FAL in Flexform

Thomas Kieslich thomas.kieslich at gmail.com
Wed Nov 28 15:46:56 CET 2012


Hi, just coding a special Content Element with Flexforms.
I try to do it in the new Way ;-) It work, but perhaps there is an 
easier Way to Implement a Media field?

Current Implementation (Thanks for making IRRE available in Flexforms):

<config>
								<type>inline</type>
								<foreign_table>sys_file_reference</foreign_table>
								<foreign_field>uid_foreign</foreign_field>
								<foreign_sortby>sorting_foreign</foreign_sortby>
								<foreign_table_field>tablenames</foreign_table_field>
								<foreign_match_fields type="array">
									<fieldname>media</fieldname>
								</foreign_match_fields>
								<foreign_label>uid_local</foreign_label>
								<foreign_selector>uid_local</foreign_selector>
								<maxItems>2</maxItems>
								<foreign_selector_fieldTcaOverride type="array">
									<config>
										<appearance>
											<elementBrowserType>file</elementBrowserType>
											<elementBrowserAllowed>jpg,png</elementBrowserAllowed>
										</appearance>
									</config>
								</foreign_selector_fieldTcaOverride>
								<!--								<filter type="array">
								 
<userFunc>TYPO3\\CMS\\Core\\Resource\\Filter\\FileExtensionFilter->filterInlineChildren</userFunc>
									<parameters>
										<allowedFileExtensions>jpg,png</allowedFileExtensions>
										<disallowedFileExtensions>php</disallowedFileExtensions>
									</parameters>
								</filter>-->
								<appearance type="array">
									<useSortable>TRUE</useSortable>
									<headerThumbnail type="array">
										<field>uid_local</field>
										<width>64</width>
										<height>64</height>
									</headerThumbnail>
								 
<showPossibleLocalizationRecords>TRUE</showPossibleLocalizationRecords>
								 
<showRemovedLocalizationRecords>TRUE</showRemovedLocalizationRecords>
									<showSynchronizationLink>TRUE</showSynchronizationLink>
									<enabledControls type="array">
										<info>FALSE</info>
										<new>FALSE</new>
										<dragdrop>TRUE</dragdrop>
										<sort>FALSE</sort>
										<hide>TRUE</hide>
										<delete>TRUE</delete>
										<delete>TRUE</delete>
									</enabledControls>
								</appearance>
								<behaviour>
									<localizationMode>select</localizationMode>
								 
<localizeChildrenAtParentLocalization>TRUE</localizeChildrenAtParentLocalization>
								</behaviour>
							</config>

Regards, Thomas


More information about the TYPO3-english mailing list