[TYPO3] After using the API to copy a page, sql_insert_id() is 0. How do I get insert id?

Peter Klein peter at umloud.dk
Tue Aug 12 09:52:06 CEST 2008


Hi Mike.
Good to know, as I have never used it myself. ;)

You can find info about the various Public variables you can read/set,
by looking at the source of the file "t3lib/class.t3lib_tcemain.php"
Lines 245-292


--
Peter Klein


On Mon, 11 Aug 2008 17:56:07 -0400, Mike <fromlists at talkingspider.com>
wrote:

>
>Thanks guys!  It's:
>
>$id = $tce->copyMappingArray_merged;
>$id = $id['pages']['551'];
>
>I never would have known that were it not for you. which is a bad thing. 
>  the docs don't exactly have this info anywhere near the tc3main page..
>
>
>Peter Klein wrote:
>> No I haven't tested it.
>> Maybe this on is better?
>> 
>> $id = $tce->copyMappingArray_merged;
>> 
>> --
>> Peter Klein
>> 
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>> 


More information about the TYPO3-english mailing list