[Typo3-dev] using flexform in extension records

Tonni Aagesen goto at dev.null
Sun Sep 5 13:57:45 CEST 2004


Hi.

I'm going through some trial and error testing of flexform usage. My aim 
is to provide language overlay for an extension. To reach my goal I've 
been studying the core api.

So, I've created an extension myext to test flexfoms, changed the "info" 
field in DB to type blob and changed the TCA according to the core api.

Now, I get an error in the "record-view" saying that: "Data Structure 
ERROR: No source value in fieldname "list_type"". I haven't been able to 
figure out the ds_pointerField usage from reading core api, so if you 
could explain?

What i expected was that my extension would store the processed xml in 
the info field in DB - which I then could fetch an use in 
class.tx_myext_pi1.php with xml2array or something.

Is it possible to use flexforms this way at all? Any insight will be 
appriciated.

Here is some portions form TCA and XML file - don't hesitate to ask for 
more information:


---------- tca.php --------------------------------------
  ....
"info" => Array (
     "exclude" => 1,	
     "label" => "LLL:EXT:myext/locallang_db.php:tx_myext_items.info",
     "config" => Array (
         "type" => "flex",
         "ds_pointerField" => "list_type",
         "ds" => "FILE:EXT:myext/flexform_ds.xml",
      )
),
  ....
-----------------------------------------------------------

---------- myext/flexform_ds.xml -------------------
<T3DataStructure>
     <ROOT>
         <type>array</type>
         <el>
             <message>
                 <TCEforms>
                     <label>Message:</label>
                     <config>
                         <type>text</type>
                         <cols>30</cols>
                         <rows>5</rows>
                     </config>
                 </TCEforms>
             </message>
         </el>
     </ROOT>
</T3DataStructure>
------------------------------------------------------------


-- 
Best regards
Tonni Aagesen
www.cazoo.dk




More information about the TYPO3-dev mailing list