[TYPO3-dev] Front End plugin - multiple versions

Brian Bendtsen nightowl at galnet.dk
Mon Apr 16 13:41:11 CEST 2007


Brian Bendtsen skrev:
> Brian Bendtsen skrev:
>> Hi Oliver, that is what I need but how do I make it? How do I create 
>> these BE forms? In the kickstarter?
>>
>> /BB
> 
> Hi again, searched for flexform and I think I have found something 
> useful. Thanks for pointing me in the right direction.
> 
> /BB
I have a problem with getting access to the information from the flexform.

My 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 my 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?

/BB




More information about the TYPO3-dev mailing list