[TYPO3-dev] Create/Delete pages via typo3 API.

Jigal van Hemert jigal at xs4all.nl
Sat Nov 29 07:18:19 CET 2008


Hi,

Nikolas Hagelstein wrote:
> Are there T3 api functions to:
> 
> 1. Create a page
> 2. Delete all pages beyond a given pid recursivly?

http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/3/3/#id3994125

shows the API for t3lib_TCEmain which can be used to manipulate records 
(including records from the pages table).

You need to setup a command array for the action and a data array (for 
the information for the page(s) to be created) and then let TCE main do 
the work for you.

Not the flag deleteTree for deleting an entire tree (if the BE user 
involved has enough rights to do so).

-- 
Jigal van Hemert.


More information about the TYPO3-dev mailing list