[TYPO3] flexform problems

Franke Gordon Gordon.Franke at skytecag.com
Thu Mar 1 12:31:40 CET 2007


Hello,

 

i have problems with a flexform.

I have made my first extension with the kickstarter ok it works ;)

 

But i have this problems:

1. I have a field templateFile ok it works but I have not say I the
kickstarter that he auto make the directory at installation so how can I
implement this

2. I have 2 dam cat tree fields ok. But the first must multiple and the
second only one.

2a. it gives me only the last value and not all

2b. how can I say that he only select one? 

 

 

Code:

<T3DataStructure>

      <meta>

      <langDisable>1</langDisable>

      <!--  <langChildren>1</langChildren>!-->

      </meta>

 <sheets>

 <sMAIN>

  <ROOT>

   <TCEforms>

 
<sheetTitle>LLL:EXT:sky_dam_download/locallang.xml:pi1_form_tab_general<
/sheetTitle>

   </TCEforms>

   <type>array</type>

    <el>

                  <templateFile>

                        <TCEforms>

 
<label>LLL:EXT:sky_dam_download/locallang.xml:pi1_form_template</label>

                             <config>

                                   <type>group</type>

                                   <internal_type>file</internal_type>

                                   <allowed>tmpl,tpl,html,htm</allowed>

                                   <max_size>100</max_size>

 
<uploadfolder>uploads/tx_skydamdownload</uploadfolder>

                                   <maxitems>1</maxitems>

                                   <size>1</size>

 
<selectedListStyle>Width:180px</selectedListStyle>

                             </config>

                        </TCEforms>

                  </templateFile>

                  <mountCategoryId>

                        <TCEforms>

 
<label>LLL:EXT:sky_dam_download/locallang.xml:pi1_form_mountCategory</la
bel>

                             <config>

                                   <type>select</type>

 

                                   <!-- not working if the
treeViewBrowseable is true see http://bugs.typo3.org/view.php?id=4549 ;(
-->

                                   <form_type>user</form_type>

 
<userFunc><![CDATA[EXT:dam/lib/class.tx_dam_tcefunc.php:&tx_dam_tceFunc-
>getSingleField_selectTree]]></userFunc>

 

 
<treeViewBrowseable>0</treeViewBrowseable>

 
<treeViewClass><![CDATA[EXT:dam/components/class.tx_dam_selectionCategor
y.php:&tx_dam_selectionCategory]]></treeViewClass>

 
<foreign_table>tx_dam_cat</foreign_table>

                                   <size>10</size>

                                   <autoSizeMax>30</autoSizeMax>

                                   <minitems>1</minitems>

                                   <maxitems>25</maxitems>

                                   <MM>tx_dam_mm_cat</MM>

                             </config>               

                        </TCEforms>

                  </mountCategoryId>

                  <startCategoryId>

                        <TCEforms>

 
<label>LLL:EXT:sky_dam_download/locallang.xml:pi1_form_startCategory</la
bel>

                             <config>

                                   <type>select</type>

 

                                   <!-- not working if the
treeViewBrowseable is true see http://bugs.typo3.org/view.php?id=4549 ;(
-->

                                   <form_type>user</form_type>

 
<userFunc><![CDATA[EXT:dam/lib/class.tx_dam_tcefunc.php:&tx_dam_tceFunc-
>getSingleField_selectTree]]></userFunc>

 

 
<treeViewBrowseable>0</treeViewBrowseable>

 
<treeViewClass><![CDATA[EXT:dam/components/class.tx_dam_selectionCategor
y.php:&tx_dam_selectionCategory]]></treeViewClass>

 
<foreign_table>tx_dam_cat</foreign_table>

                                   <size>10</size>

                                   <autoSizeMax>30</autoSizeMax>

                                   <minitems>0</minitems>

                                   <maxitems>2</maxitems>

                                   <MM>tx_dam_mm_cat</MM>

                             </config>               

                        </TCEforms>

                  </startCategoryId>

    </el>

   </ROOT>

  </sMAIN>

  </sheets>

</T3DataStructure>

 

 

 

greetings

Gordon



More information about the TYPO3-english mailing list