*/ require_once 'init.php'; \TYPO3\CMS\Backend\Utility\BackendUtility::lockRecords(); $editDocumentController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\EditDocumentController'); // Preprocessing, storing data if submitted to $editDocumentController->preInit(); $formprotection = \TYPO3\CMS\Core\FormProtection\FormProtectionFactory::get(); // Checks, if a save button has been clicked (or the doSave variable is sent) if ($editDocumentController->doProcessData()) { if ($formprotection->validateToken(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('formToken'), 'editRecord')) { $editDocumentController->processData(); } } $editDocumentController->init(); $editDocumentController->main(); $editDocumentController->printContent(); ?>