[TYPO3] Is there a copy row or dulpicate row function?

Sander van Gelderen mail at sandervangelderen.nl
Thu May 31 15:39:14 CEST 2007


Hi Anders,

take a look at 
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/3/3/

I think you need to use $tce->process_cmdmap();

Note: I have not used it myself yet but am currently working on a similar problem (see my post today 
  "t3lib_TCEmain hook processCmdmap_postProcess")

HTH,

Sander


Anders Tillbeck schreef:
> I am doing an extension where I need to create a copy of a tt_content 
> element from one page to another and only changing pid.
> 
> Is there a way to copy a table row and insert it into the same table 
> with a new auto_increment uid? I have not a function for that purpose 
> but have the feeling I have not been looking the righ place.
> 
> I have searched the ExtDevEval to show DB functions:
> http://typo3.org/typo3conf/ext/extdeveval/apidocs/t3lib_db.html
> 
> It is basically the same functionality as in the backend when copying a 
> content element and inserting a copy on the same or another page.


More information about the TYPO3-english mailing list