[TYPO3-dev]  How to get information from a flexform?
    Brian Bendtsen 
    nightowl at galnet.dk
       
    Tue Apr 17 10:17:23 CEST 2007
    
    
  
Hi
I have a problem with getting the information from a flexform I have 
created for my extension.
The flexform_pi1_ds.xml file looks like this:
<T3DataStructure>
  <meta>
   <langDisable>1</langDisable>
  </meta>
  <ROOT>
   <type>array</type>
   <el>
    <field_templateObject>
     <TCEforms>
<label>LLL:EXT:eb_bolig/locallang_db.php:tt_content.tx_ebbolig_modultype</label>
      <config>
       <type>select</type>
       <items type="array">
        <numIndex index="0" type="array">
         <numIndex 
index="0">LLL:EXT:eb_bolig/locallang_db.php:tt_content.tx_ebbolig_nyesteLedigeBoliger</numIndex>
         <numIndex index="1">Nyeste_ledige_boliger</numIndex>
        </numIndex>
        <numIndex index="1" type="array">
         <numIndex 
index="0">LLL:EXT:eb_bolig/locallang_db.php:tt_content.tx_ebbolig_alleLedigeBoliger</numIndex>
         <numIndex index="1">Alle_ledige_boliger</numIndex>
        </numIndex>
       </items>
       <size>1</size>
       <maxitems>1</maxitems>
      </config>
     </TCEforms>
    </field_templateObject>
   </el>
  </ROOT>
</T3DataStructure>
- and I have the following in class.tx_ebbolig_pi1.php
     function main($content,$conf)    {
         $this->conf=$conf;
         $this->pi_setPiVarDefaults();
         $this->pi_loadLL();
         $this->pi_initPIflexform(); // Init and get the flexform data 
of the plugin
         $piFlexForm = $this->cObj->data['pi_flexform'];
         return 
$this->pi_wrapInBaseClass($this->pi_getFFvalue($piFlexForm, 
'tx_ebbolig_modultype', ''));
     }
- nothing is displayed, what am I doing wrong?
/Brian Bendtsen
    
    
More information about the TYPO3-dev
mailing list