[TYPO3-english] Problem with External Data Import ext
Tonyo
tonyo.mail at gmail.com
Thu Mar 17 17:20:40 CET 2011
Hi,
I have a problem with this wonderful extension ;)
I hope somebody could help me.
I use externalimport and the feed connector to load and parse a XML in one
of my databases. My XML structure is the following :
<infos>
<fruitiere>
<oldid>2</oldid>
<nom>fruitiere test</nom>
<diapdir>fileadmin/</diapdir>
<footer>footer</footer>
<fdcl>1</fdcl>
<tradition>0</tradition>
</fruitiere>
...bla bla....
<fruitiere>
<oldid>4</oldid>
<nom>fruitiere test3</nom>
<credits>credits3</credits>
<footer>footer3</footer>
<fdcl>1</fdcl>
<tradition>0</tradition>
</fruitiere>
</infos>
In the ext_tables.php, I followed the RSS feed tutorial of the
externalimport_tut, and put the following code :
$TCA['tx_dklikmfsiinfosfruitieres_element']['ctrl']['external'] = array(
0 => array(
'connector' => 'feed',
'parameters' => array(
'uri' => t3lib_extMgm::extPath($_EXTKEY, 'res/test.xml'),
),
'data' => 'xml',
'nodetype' => 'fruitiere',
'priority'=>'10',
'pid'=>'20',
'reference_uid' => 'oldid',
'enforcePid' => true,
'disabledOperations' => '',
'description' => 'TEST FRUITIERES',
'minimumRecords' => '1'
),
);
On the same basis, I specified all the 'external' parameters in my tca for
the fields I want to import :
$TCA['tx_dklikmfsiinfosfruitieres_element']['columns']['nom']['external'] =
array(
0 => array(
'field' => 'nom'
)
);
$TCA['tx_dklikmfsiinfosfruitieres_element']['columns']['credits']['external']
= array(
0 => array(
'field' => 'credits'
)
);
$TCA['tx_dklikmfsiinfosfruitieres_element']['columns']['footer']['external']
= array(
0 => array(
'field' => 'footer'
)
);
$TCA['tx_dklikmfsiinfosfruitieres_element']['columns']['fdcl']['external'] =
array(
0 => array(
'field' => 'fdcl'
)
);
$TCA['tx_dklikmfsiinfosfruitieres_element']['columns']['tradition']['external']
= array(
0 => array(
'field' => 'tradition'
)
);
$TCA['tx_dklikmfsiinfosfruitieres_element']['columns']['oldid']['external']
= array(
0 => array(
'field' => 'oldid'
)
);
$TCA['tx_dklikmfsiinfosfruitieres_element']['columns']['hidden']['external']
= array(
0 => array(
'value' => 0
)
);
That's it. After all this configuration, I launched the import process and
had a successful message "3 new records were imported"
Unfortunately, I have nothing in the database.
In "developer log", In the "New IDs" line, I have nothing, so I presume it's
normal to have nothing imported...
Can somebody explain me what's wrong with my configuration ?
Thanks in advance !!
--
http://www.tonyo.org : ma vie, mon oeuvre
More information about the TYPO3-english
mailing list