[TYPO3] After using the API to copy a page, sql_insert_id() is 0. How do I get insert id?
Xavier Perseguers
typo3 at perseguers.ch
Tue Aug 12 08:15:17 CEST 2008
Hi Mike,
> $id = $tce->copyMappingArray_merged;
> $id = $id['pages']['551'];
OK. Good to know that.
> 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..
Yes, you're right. I had to investigate this last week as I wanted to
dynamically create new page structure and I did not found any doc on
this but I managed to read and understand the code of the new page
wizard, which pointed me the useful TYPO3 classes and then it was
relatively easy to go on.
I don't know whether it exists somewhere some "low-level" documentation
but in source code itself. For instance I did not found how to localize
a page using the API (I hard-coded an INSERT statement) nor how to
populate a flexform (e.g. FCE or templates from TemplaVoila) from an
extension without showing the form to the BE user.
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list