[Typo3-dev] creating new records with tce
Waggershauser, Thomas
tw at amedick-sommer.de
Mon Aug 1 09:37:13 CEST 2005
Hi,
-----Ursprüngliche Nachricht-----
Von: typo3-dev-bounces at lists.netfielders.de
[mailto:typo3-dev-bounces at lists.netfielders.de]Im Auftrag von Bernhard
Kraft
Gesendet: Samstag, 30. Juli 2005 10:02
An: typo3-dev at lists.netfielders.de
Betreff: Re: [Typo3-dev] creating new records with tce
Waggershauser, Thomas wrote:
> Hello Developers!
>
> How do I get the the uid of a new record, created with $tce->process_datamap()? Im sure there is a way, but i do not get throug at the moment...
>
and then you will do:
$this->tce->processDatamap($dataArr, NULL);
and afterwards you can get the UID's of the newly created records
by:
$newUid = $this->tce->substNEWwithIDs[$hash];
Ok, I already found it. Thanx!
But there is another thing I'm wondering:
Is it possible to use something like
[table_a] => Array (
[NEW1234] => Array ( ... )
)
[table_b] => Array (
[NEW5678] => Array (
[ref_to_table] => NEW1234
...
)
)
I tried this, but it did not work :(
In Kaspars examples he did this with pages and content using pid, but is this possible with custom fields?
Greetings,
Tom
More information about the TYPO3-dev
mailing list