Bug #24452
closedtcaTree in flexforms still breaks
0%
Description
Using the tcatree in flexforms shows some strange debug code because of a missing htmlspecialchars.
Problem is that "value="' . $row[$field] . '" />" breaks the whole layout as $row[$field] holds the complete xml structure (t3lib_TCEforms_Tree -> renderField())
Simple solution: Use a htmlspecialchars to fix the layout breaking but I don't know if this is a real solution.
My flexform setting is:
------------
<settings.category>
<TCEforms>
<label>LLL:EXT:news2/Resources/Private/Language/locallang_be.xml:flexforms_general.category</label>
<config>
<type>select</type>
<renderMode>tree</renderMode>
<treeConfig>
<parentField>parentcategory</parentField>
<appearance>
<expandAll>TRUE</expandAll>
<showHeader>TRUE</showHeader>
</appearance>
</treeConfig>
<MM>tx_news2_domain_model_news_category_mm</MM>
<foreign_table>tx_news2_domain_model_category</foreign_table>
<foreign_table_where> AND (tx_news2_domain_model_category.sys_language_uid = 0 OR tx_news2_domain_model_category.l10n_parent = 0)</foreign_table_where>
<size>10</size>
<autoSizeMax>20</autoSizeMax>
<minitems>0</minitems>
<maxitems>20</maxitems>
</config>
</TCEforms>
</settings.category>
------------
(issue imported from #M16890)
Files
Updated by Georg Ringer almost 14 years ago
further more it doesn't seem that the values are correctly saved
Updated by Steffen Kamper almost 14 years ago
Georg, could you attach a demo extension?
Updated by Georg Ringer almost 14 years ago
check out https://svn.typo3.org/TYPO3v4/Extensions/news2/trunk/ and change the settings in flexforms (Configuration/FlexForms/flexform_news.xml) to the settings above under (additional information) because I didn't check in that code yet
Updated by Steffen Kamper almost 14 years ago
Hi Georg,
This isn't easy to solve as tcemain doesn't resolve flexform fields automatic.
Nothing to get fixed now for RC1, hopefully for final. Would be glad if you could do some pre-debugs to find the real problem. (SteffenR is sitting in the caribic :p)
vg Steffen