[TYPO3-dev] sorting IRRE in FlexForm
Sascha
lsascha at gmail.com
Thu Feb 14 16:58:15 CET 2013
Hello Everyone.
I hope someone can help me with my (small?) problem.
i currently have a Extbase model that can added multiple times into a FlexForm.
I do this with the following FlexForm part.
<!-- ... -->
<images>
<TCEforms>
<label>images</label>
<config type="array">
<type>inline</type>
<foreign_table>tx_extension_domain_model_images</foreign_table>
<foreign_sortby>sorting</foreign_sortby>
<maxitems>9999</maxitems>
<appearance type="array">
<collapseAll>1</collapseAll>
<showSynchronizationLink>1</showSynchronizationLink>
<showPossibleLocalizationRecords>1</showPossibleLocalizationRecords>
<showAllLocalizationLink>1</showAllLocalizationLink>
<enabledControls type="array">
<info>0</info>
<new>1</new>
<dragdrop>1</dragdrop>
<sort>1</sort>
<hide>1</hide>
<delete>1</delete>
<localize>1</localize>
</enabledControls>
<levelLinksPosition>both</levelLinksPosition>
</appearance>
</config>
</TCEforms>
</images>
<!-- ... -->
So far everything works without any problem.
But the sorting i make in the FlexForm is not saved in the database.
Maybe it ignores the definiton of <foreign_sortby>
I noticed that it saves the sorting in an XML inside the tt_content database-table.
It looks like this:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3FlexForms>
<data>
<sheet index="settings">
<language index="lDEF">
<field index="images">
<value index="vDEF">20,21</value>
</field>
</language>
</sheet>
</data>
</T3FlexForms>
And inside the <value index="vDEF"> are the two IDs of the Objects i added. And when i change the sorting it changes in the XML too. But not in the "sorting" field in the database.
That way i can not read the sorting when i use Extbase.
How can i solve this?
Many thanks in advance.
More information about the TYPO3-dev
mailing list