[TYPO3-dev] $this->cObj->data['pi_flexform'] empty?
Henjo Hoeksma
hphoeksma at stylence.nl
Tue Dec 2 15:42:13 CET 2008
Hi Michael,
thanks for responding. That line is in...
I tripple checked that (at least ;-) ).
Thanks though for thinking along!
Henjo
On 2008-12-01 21:10:01 +0100, Michael Miousse
<michael.miousse at infoglobe.ca> said:
> Henjo Hoeksma wrote:
>
>> Hi list,
>>
>> I am working on a mulit language extension but run into a problem that
>> kept me busy the last view hrs.
>>
>> $this->cObj->data['pi_flexform'] seems to be empty.
>>
>> I use the way of loading FF values as described in the wiki:
>>
>> function init(){
>> $this->pi_loadLL();
>> $this->pi_initPIflexform();
>> $this->lConf = array();
>> $piFlexForm = $this->cObj->data['pi_flexform'];
>> $index = $GLOBALS['TSFE']->sys_language_uid;
>> $sDef = current($piFlexForm['data']);
>> $lDef = array_keys($sDef);
>> foreach ( $piFlexForm['data'] as $sheet => $data )
>> foreach ($data[$lDef[$index]] as $key => $val )
>> $this->lConf[$key] =
>> $this->pi_getFFvalue($piFlexForm,$key,$sheet,$lDef[$index]);
>> }
>>
>> I also took the steps prescribed in the wiki where it comes to adding
>> the references to the FF file.
>>
>> I have found some threads on people with the same problem, but could
>> not trace a solution.
>>
>> Thank you for your response in advance,
>>
>> Henjo
>
>
> is $this->cObj->data['pi_flexform'] the only key of $this->cObj->data not
> loaded.
> if so, do you have those line in ext_table.php
> $TCA['tt_content']['type']['list']['subtypes_addlist'
> [$_EXTKEY.'_pi1']='pi_flexform';
>
> t3lib_extMgm::addPiFlexFormValue($_EXTKEY.'_pi1','FILE:EXT:'
> $_EXTKEY.'pi1/flexform_ds.xml');
More information about the TYPO3-dev
mailing list