You need to implement sending the form not to email, but to create a new resource with the received data from the form. Tell me where to dig?

    1 answer 1

    We assume that you have revo .
    The resource/create processor should be used.

     $parent = 9999; // id родительского ресурса (куда будем создавать ресурс) /* Получаем */ $pagetitle = "Получаем заголовок"; // $_POST['pagetitle']; $content = "Получаем контент"; // $_POST['content']; /* Создаём новый ресурс */ $response = $modx->runProcessor('resource/create', array( 'pagetitle' => $pagetitle, 'content' => $content, 'published' => 1, 'parent' => $parent)); if ($response->isError()) { return $modx->error->failure($response->getMessage()); } $newResource = $response->response['object']; /* Очищаем кэш */ $modx->cacheManager->refresh(); return;