[TYPO3-dev] $this->cObj->data['pi_flexform'] empty?

Michael Miousse michael.miousse at infoglobe.ca
Mon Dec 1 21:10:01 CET 2008


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');

-- 
Michael Miousse
Infoglobe
michael.miousse at infoglobe.ca




More information about the TYPO3-dev mailing list