[TYPO3-dev] copy a page in BE-module, and then ... ?

bernd wilke t3ng at pi-phi.tk
Thu Oct 27 23:33:14 CEST 2011


in a BE-Module I want to copy a page with all contents and afterwards 
modify the new page.

the copy can be done with

$cmdmap = array(
	'pages' => array(
		$fromId => array(
			'copy' => $toId,
		),
	),
);
$datamap = array();

$tce = t3lib_div::makeInstance('t3lib_TCEmain');
$tce->stripslashes_values=0;
		
global $PAGES_TYPES;
		
$tce->start($datamap, $cmdmap);
//$tce->process_cmdmap();

but:  how do I know what is the Id of the new page?

bernd
-- 
http://www.pi-phi.de/cheatsheet.html



More information about the TYPO3-dev mailing list