[TYPO3-dev] How to create pages/elements via Extension/Hook?

Jan Bartels j.bartels at arcor.de
Fri Aug 24 19:42:24 CEST 2018


Am 24.08.2018 um 09:34 schrieb Stefan Franke:
> I need to create pages/elements on the fly when saving a page record
> in the backend. Right now, I'm using the following code with the hook
> `processDatamap_preProcessFieldArray`:
> 
> ...
> 
> This actually works, but I'd rather not work directly on the
> database. So I was wondering if there is a correct TYPO3-way of
> creating pages/content elements via extension/hook/etc.?
Have a look at the DataHandler:
https://docs.typo3.org/typo3cms/CoreApiReference/ApiOverview/Typo3CoreEngine/Database/Index.html

Jan



More information about the TYPO3-dev mailing list