[TYPO3-english] TYPO3 6.0: Using FAL image in a flexform as an element
Udo Leimberger
udo at t3developer.de
Thu Jan 10 14:28:28 CET 2013
Hello @all,
I tried to add a FAL image as an element in a flexform.
Here is my flexformcode:
----
<settings.newimage>
<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_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>
<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>
</settings.newimage>
This works but I have some questions. Perhaps there are some bugs also.
1) How can you change a palette view for this element. If I render a flexform with the config above .. i can add images with title and descriptions, but i miss alternate text and link like in an regular FAL image CE.
2) if I change parameters in the enabledControls section i.e. detele => TRUE to delete => FALSE the paperbasket for deleting items is already in the rendered form. Same to hide or new.
3) Maxitems - parameter seems to have no influence.
Does anybody have the same problems with FAL images (media) in a flexform ?
Regards
Udo
More information about the TYPO3-english
mailing list