[TYPO3-english] Flexforms doesn't remember
Jeppe Donslund
jd at webmasters.dk
Tue Feb 23 11:49:24 CET 2010
Hi
In a FlexForm I have a category selector which get the options from
tt_news_cat.
I can choose a category and in Frontend I can use the selected category
but in backend the FlexForm doen't show what category is selected.
From flexform_ds_pi1.xml
<categorySelection>
<TCEforms>
<label>LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.category_selection</label>
<config>
<type>select</type>
<form_type>user</form_type>
<userFunc>tx_ttnews_TCAform_selectTree->renderCategoryFields</userFunc>
<treeView>1</treeView>
<foreign_table>tt_news_cat</foreign_table>
<foreign_table_where>AND tt_news_cat.pid=###STORAGE_PID### ORDER BY
tt_news_cat.sorting</foreign_table_where>
<size>5</size>
<autoSizeMax>10</autoSizeMax>
<minitems>0</minitems>
<maxitems>99</maxitems>
<itemsHeader>LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.itemsHeader</itemsHeader>
<items type="array">
<numIndex index="100">
<numIndex
index="0">LLL:EXT:tt_news/locallang_tca.xml:tt_news.pi_flexform.category_selection_notCategorized</numIndex>
<numIndex index="1">0</numIndex>
</numIndex>
</items>
<allowNonIdValues>1</allowNonIdValues>
</config>
</TCEforms>
</categorySelection>
What should I change to get it to work?
Regards
Jeppe D.
More information about the TYPO3-english
mailing list