[TYPO3-dam] DAM category selection field in flexform

Richard Bausek lists at artibella.com
Wed May 3 12:14:16 CEST 2006


Hi list,

is it possible to render the DAM category selection tree in a flexform?

I tried to implement it but inside the iframe only the tabs of the whole 
flexform are shown instead of the tree ([1] see screenshot).

This is the configuration I use in the flexform_ds.xml:

<categorySelection>
<TCEforms>						 
<label>LLL:EXT:rb_campaign/locallang_db.xml:rb_campaign.pi_flexform.category_selection</label>
<config>
<type>select</type>
<form_type>user</form_type>						 
<userFunc><![CDATA[EXT:dam/lib/class.tx_dam_tcefunc.php:&tx_dam_tceFunc->getSingleField_selectTree]]></userFunc> 
<treeViewBrowseable>1</treeViewBrowseable>				 
<foreign_table>tx_dam_cat</foreign_table>	 
<treeViewClass><![CDATA[EXT:dam/components/class.tx_dam_selectionCategory.php:&tx_dam_selectionCategory]]></treeViewClass>
<size>10</size>
<autoSizeMax>30</autoSizeMax>
<minitems>0</minitems>
<maxitems>20</maxitems>
<MM>tx_dam_mm_cat</MM>					
<default></default>
</config>
</TCEforms>
</categorySelection>

Can anyone spot an error there?


I have looked up other extensions using DAM and the only one with the 
category tree is "dam_downloads" where the tree is not in a flexform but 
in an extended field of tt_content even though the plugin uses a 
flexform for configuration. I guess the author had the same problem as I 
did...

many thanks in advance,
Richard



[1] http://dev.artibella.com/test/damcat_inflex.gif



More information about the TYPO3-project-dam mailing list