[TYPO3-mvc] FAL in templavoila section container

Ganapati Bhat ganybhat at gmail.com
Fri Sep 27 11:40:51 CEST 2013


Hello,

I wanted use FAL in templavoila section container [SC].
My xml data for FAL looks like this.

<field_images type="array">
<tx_templavoila type="array">
<title>FAL Image</title>
<sample_data type="array">
<numIndex index="0"></numIndex>
</sample_data>
<eType>image</eType>
<TypoScript>
<![CDATA[
10 = FILES
10 {
references {
table = tt_content
uid.data = TSFE:register|tx_templavoila_pi1.parentRec.uid
fieldName = field_images
}
renderObj = IMAGE
renderObj {
file {
import.data = file:current:publicUrl
maxW = 800
}
}
}
]]>
</TypoScript>
<proc type="array">
<int>0</int>
<HSC>0</HSC>
<stdWrap></stdWrap>
</proc>
<preview></preview>
</tx_templavoila>
<TCEforms type="array">
<label>Bild</label>
<config type="array">
<type>inline</type>
<maxitems>1</maxitems>
<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>
<fieldname>field_images</fieldname>
</foreign_match_fields>
<foreign_label>uid_local</foreign_label>
<foreign_selector>uid_local</foreign_selector>
<foreign_selector_fieldTcaOverride>
<config>
<appearance>
<elementBrowserType>file</elementBrowserType>
<elementBrowserAllowed>jpg,png</elementBrowserAllowed>
</appearance>
</config>
</foreign_selector_fieldTcaOverride>
<appearance>
<useSortable>TRUE</useSortable>
<headerThumbnail>
<field>uid_local</field>
<width>64</width>
<height>64</height>
</headerThumbnail>
<showPossibleLocalizationRecords>TRUE</showPossibleLocalizationRecords>
<showRemovedLocalizationRecords>TRUE</showRemovedLocalizationRecords>
<showSynchronizationLink>TRUE</showSynchronizationLink>

<enabledControls>
<info>FALSE</info>
<new>FALSE</new>
<dragdrop>TRUE</dragdrop>
<sort>FALSE</sort>
<hide>TRUE</hide>
<delete>TRUE</delete>
<localize>TRUE</localize>
</enabledControls>
</appearance>
<behaviour>
<localizationMode>select</localizationMode>
<localizeChildrenAtParentLocalization>TRUE</localizeChildrenAtParentLocalization>
</behaviour>
</config>
</TCEforms>
</field_images>

But if I use this inside the repeating section ( Section container), the
last uploaded image overwrites the previously uploaded images in previous
container!.

How to solve this issue ?
Please help.
Thank you.

Regards,
Ganybhat


More information about the TYPO3-project-typo3v4mvc mailing list