Skip to content

Instantly share code, notes, and snippets.

@katzefudder
Created January 12, 2014 12:21
Show Gist options
  • Save katzefudder/8383947 to your computer and use it in GitHub Desktop.
Save katzefudder/8383947 to your computer and use it in GitHub Desktop.
FAL images in Flexform
<files>
<TCEforms>
<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>image</fieldname>
</foreign_match_fields>
<foreign_types type="array">
<numIndex index="2">
<showitem>title,description,alternative,link</showitem>
</numIndex>
</foreign_types>
<foreign_label>uid_local</foreign_label>
<foreign_selector>uid_local</foreign_selector>
<maxitems>3</maxitems>
<foreign_selector_fieldTcaOverride type="array">
<config>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>jpg,png</elementBrowserAllowed>
</appearance>
</config>
</foreign_selector_fieldTcaOverride>
<appearance type="array">
<createNewRelationLinkTitle>Add new Image</createNewRelationLinkTitle>
<useSortable>TRUE</useSortable>
<showPossibleLocalizationRecords>TRUE</showPossibleLocalizationRecords>
<showRemovedLocalizationRecords>TRUE</showRemovedLocalizationRecords>
<showSynchronizationLink>TRUE</showSynchronizationLink>
<enabledControls type="array">
<info>FALSE</info>
<new>TRUE</new>
<dragdrop>TRUE</dragdrop>
<sort>TRUE</sort>
<hide>TRUE</hide>
<delete>TRUE</delete>
<localize>TRUE</localize>
</enabledControls>
<levelLinksPosition>both</levelLinksPosition>
</appearance>
<behaviour>
<localizationMode>select</localizationMode>
<localizeChildrenAtParentLocalization>TRUE</localizeChildrenAtParentLocalization>
</behaviour>
</config>
</TCEforms>
</files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment