[TYPO3-english] Re: External Import and JSON

2016-09-23 Thread Jeppe Donslund

But if I just could get the value, then I'm glad.
But the value isn't inserted in the database.

I have en ordinary textarea and I just wan't the comma seperated list of file 
names.

'pictures' => array(
'exclude' => 1,
'label' => 
'LLL:EXT:orig_carinfo/Resources/Private/Language/locallang_db.xlf:tx_origcarinfo_domain_model_car.pictures',
'config' => array(
'type' => 'text',
'cols' => '40',
'rows' => '15',
'wrap' => 'off',
),
   'external' => array(
0 => array(
'field' => 'Pictures'
   )
)
),
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Re: External Import and JSON

2016-09-23 Thread Jeppe Donslund

What if a node has child nodes?
I do not get the values from "Pictures" into the database.

"Pictures": [
   "http://images.dk/images/4478.jpg;,
   "http://images.dk/images/4478_1.jpg;,
   "http://images.dk/images/4478_2.jpg;,
   "http://images.dk/images/4478_3.jpg;,
   "http://images.dk/images/4478_4.jpg;
 ],
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Re: External Import and JSON

2016-09-23 Thread Jeppe Donslund

I found the solution. The "External primary key" is not from the external 
source, it is the field name in the TYPO3 database.

So for now, thank you very much.
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Re: External Import and JSON

2016-09-23 Thread Jeppe Donslund

Hi François

Yes, I did manage to import from my test file. I changed it back to JSON, 
because that is what I get directly from my test file.

But now, when I try to reimport to get data into new files, it won't update the 
records that is already there. I think I am missing something like a uniq id or 
something.
My test file has a number that is uniq for every record. It is a 10 digit 
number.
When I import the file TYPO3 still uses the uid.

Does it make any sense?
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

[TYPO3-english] Re: External Import and JSON

2016-09-21 Thread Jeppe Donslund

Hi

This from the TCA (domain is changed :-) ).
If I test yhe url in the csv connector it works fine.

'external' => array(
0 => array(
'connector' => 'csv',
'parameters' => array(
'filename' => 
'http://www.domain.dk/typo3conf/ext/orig_carinfo/syncronizecars.php',
'encoding' => 'utf-8'
),
'data' => 'array',
'referenceUid' => 'ID',
'priority' => 10,
'description' => 'Import of all company 
cars'
)
)
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


[TYPO3-english] Re: External Import and JSON

2016-09-20 Thread Jeppe Donslund

The connector test in the JSON connector is succesfull.
___
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english