[TYPO3] Flexform data not in $this->cObj->data

Peter Klein peter at umloud.dk
Fri Jan 5 17:39:50 CET 2007


Hi Marcel.
When that happens to me, it's usually because I forgot to include the line:
$this->pi_initPIflexForm();

But from your previous post, then you have included that, so I have no other 
ideas to what might be wrong.

You can take a look at one of my small extensions (it only has 2-3 
functions), which uses flexform.
http://typo3.org/extensions/repository/view/ffiframe/1.1.0/

Maybe you can compare what I do, to what you are doing?

--
Peter Klein / Umloud Untd


"Marcel Douwstra" <marcel.douwstra at tros.nl> wrote in message 
news:mailman.1.1167907082.13715.typo3-english at lists.netfielders.de...
> Hi Peter,
>
> thanx for your reply. Too bad it doesn't solve my problem.
>
> In your example (which I also tried in my extension) you do this:
>
> $blabla = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 
> 'field_blabla');
>
> This however requires pi_flexform to be present in $this->cObj->data. My 
> whole problem is that is not, allthough it is definitely stored in the 
> database. Do you maybe have some other suggestions I could try?
>
> Thanx,
>
> Marcel Douwstra
>
> Peter Klein schreef:
>> Hi Marcel. You need to use one of the 2 FF functions to get your flexform 
>> values
>>
>> function 
>> pi_getFFvalue($T3FlexForm_array,$fieldName,$sheet='sDEF',$lang='lDEF',$value='vDEF')
>>
>> or
>>
>> function pi_getFFvalueFromSheetArray($sheetArray,$fieldNameArr,$value)
>>
>>
>> I personally do it like this:
>>
>> $blabla = $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 
>> 'field_blabla');
>>
>> --
>> Peter Klein / Umloud Untd. 




More information about the TYPO3-english mailing list