[TYPO3-dev] show info from flexform on FE

Steffen Kamper steffen at sk-typo3.de
Tue Sep 11 16:11:15 CEST 2007


this can't work

remove function init and do that in function main.

vg  Steffen

"Bas van der Togt" <bas.vander.togt at efocus.nl> schrieb im Newsbeitrag 
news:mailman.1.1189519173.9521.typo3-dev at lists.netfielders.de...
> Still not working.
> maybe you can have a look at my php file? :)
>
> line 94
> http://www.wolfsstyle.com/flex.txt (user: algebra pw: algebra)
>
> kind regards,
> Bas
>
> Steffen Kamper wrote:
>> "Bas van der Togt" <bas.vander.togt at efocus.nl> schrieb im Newsbeitrag 
>> news:mailman.1.1189517028.30900.typo3-dev at lists.netfielders.de...
>>> I followed this doc -> 
>>> http://wiki.typo3.org/index.php/Extension_Development%2C_using_Flexforms
>>>
>>> Is there something missing?
>>>
>>> Where and how do i have to call the pi_getFFvalue() function?
>>>
>>> thanks for your help!
>>>
>>> Dmitry Dulepov [typo3] wrote:
>>>> Hi!
>>>>
>>>> Bas van der Togt wrote:
>>>>> I build a flexform and now i want tot get the information from the 
>>>>> flexform into the frontend.
>>>>>
>>>>> This is working (but now i get the whole xml.):
>>>>> $content.= $this->cObj->data['pi_flexform'];
>>>>>
>>>>> I only want to show the info from the flexform.
>>>>> So i tried this, but it's not working. Does anybody know why?
>>>>> $content.= $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 
>>>>> 'what_to_display', 'sDEF');
>>>> Did you call a function to initialize flexform prior to calling 
>>>> pi_getFFvalue()?
>>>>
>>
>> you should use it this way (FE-Plugin)
>>
>> // parse XML data into php array
>>   $this->pi_initPIflexForm();
>>
>>   //Flexform Values
>>   $this->conf['view'] = 
>> $this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'view_input', 
>> 'sVIEW');
>>
>> vg  Steffen 






More information about the TYPO3-dev mailing list