[TYPO3-dev] help with Flexform

Stephane Baribeau stephane.baribeau at sys-tech.net
Wed Apr 22 00:02:49 CEST 2009


Hi everyone,

I really need help with Flexform.
I know nothing about that :)

I take sample from 
http://wiki.typo3.org/index.php/Extension_Development,_using_Flexforms

I have followed all the step.
When i try this code

$this->pi_initPIflexForm(); // Init and get the flexform data of the plugin
        $this->lConf = array(); // Setup our storage array...

        $piFlexForm = $this->cObj->data['pi_flexform'];

i got a null value from $piFlexForm
i set my ext_tables.php like this

<?php
if (!defined ('TYPO3_MODE'))     die ('Access denied.');

t3lib_div::loadTCA('tt_content');
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY.'_pi1']='layout,select_key';
$TCA["tt_content"]["types"]["list"]["subtypes_addlist"][$_EXTKEY."_pi1"]="pi_flexform"; 



t3lib_extMgm::addPlugin(Array('LLL:EXT:st_sspPermisFlex/locallang_db.xml:tt_content.list_type_pi1', 
$_EXTKEY.'_pi1'),'list_type');


t3lib_extMgm::addStaticFile($_EXTKEY,"pi1/static/","Gestion des permis");

t3lib_extMgm::addPiFlexFormValue(9, 
'FILE:EXT:'.$_EXTKEY.'/flexform_ds.xml');

debugster('FILE:EXT:'.$_EXTKEY.'/flexform_ds.xml');

?>

i have copied the flexform_ds.xml from the tutorial.

I dont know what i forget or what.
Can you help me? Whats about the flexform_ds.xml? is it the file where 
we put what people can modify in backend?

thanks for your help.

-- 
*Stéphane Baribeau*
Programmeur

stephane.baribeau at sys-tech.net <mailto:stephane.baribeau at sys-tech.net>
418 520-0739 poste 129
514 907-0036 / 1-877-969-8324

*SYS-TECH / Web, médias et technologies libres*
6700 BOUL PIERRE-BERTRAND BUREAU 209
QUÉBEC QC G2J 0B4
http://www.sys-tech.net

/Membre supporteur de l'Association TYPO3 <http://typo3.org>/




More information about the TYPO3-dev mailing list