Skip to content

Instantly share code, notes, and snippets.

@garbast
Created September 30, 2015 09:57
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garbast/b5e270934729248cf87d to your computer and use it in GitHub Desktop.
Save garbast/b5e270934729248cf87d to your computer and use it in GitHub Desktop.
Flexform with FAL field
<image type="array">
<TCEforms type="array">
<label>Bild (Pflichtfeld)</label>
<config>
<type>inline</type>
<minitems>1</minitems>
<maxitems>1</maxitems>
<appearance type="array">
<createNewRelationLinkTitle>LLL:EXT:cms/locallang_ttc.xlf:images.addFileReference</createNewRelationLinkTitle>
<enabledControls type="array">
<delete>1</delete>
<dragdrop>1</dragdrop>
<hide>1</hide>
<info>1</info>
<localize>1</localize>
<new/>
<sort/>
</enabledControls>
<headerThumbnail type="array">
<field>uid_local</field>
<height>64c</height>
<width>64</width>
</headerThumbnail>
<showAllLocalizationLink/>
<showPossibleLocalizationRecords/>
<showRemovedLocalizationRecords/>
<showSynchronizationLink/>
<useSortable>1</useSortable>
</appearance>
<behaviour type="array">
<localizationMode>select</localizationMode>
<localizeChildrenAtParentLocalization>1</localizeChildrenAtParentLocalization>
</behaviour>
<filter type="array">
<items type="array">
<numIndex index="0" type="array">
<userFunc>TYPO3\CMS\Core\Resource\Filter\FileExtensionFilter->filterInlineChildren</userFunc>
<parameters>
<allowedFileExtensions>gif,jpg,jpeg,tif,tiff,bmp,pcx,tga,png,pdf,ai</allowedFileExtensions>
<disallowedFileExtensions/>
</parameters>
</numIndex>
</items>
</filter>
<foreign_field>uid_foreign</foreign_field>
<foreign_label>uid_local</foreign_label>
<foreign_match_fields type="array">
<fieldname>image</fieldname>
<tablenames>tt_content</tablenames>
</foreign_match_fields>
<foreign_selector>uid_local</foreign_selector>
<foreign_selector_fieldTcaOverride type="array">
<config>
<appearance>
<elementBrowserAllowed>jpg,png</elementBrowserAllowed>
<elementBrowserType>file</elementBrowserType>
</appearance>
</config>
</foreign_selector_fieldTcaOverride>
<foreign_sortby>sorting_foreign</foreign_sortby>
<foreign_table>sys_file_reference</foreign_table>
<foreign_table_field>tablenames</foreign_table_field>
</config>
</TCEforms>
</image>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment