Maybe I have to add some additional infos:
The form is made with formit and I use the following snippet as a posthook in the form call:
$doc = $modx->newObject('modResource');
$doc->set('class_key','modResource');
$doc->set('context_key','web');
$doc->set('type','document');
$doc->set('contentType','text/html');
$doc->set('pagetitle',$pagetitle);
$doc->set('longtitle',$longtitle);
$doc->set('introtext',$introtext);
$doc->set('alias',$alias);
$doc->set('published','1');
$doc->set('parent','34');
$doc->set('isfolder','0');
$doc->setContent($content);
$doc->set('richtext','1');
//$doc->set('menuindex','99');
$doc->set('searchable','1');
$doc->set('cacheable','1');
//$doc->set('menutitle','FAQ');
$doc->set('donthit','0');
$doc->set('hidemenu','0');
$doc->set('publishedon',$publishedon);
$doc->set('template',$template);
$doc->save();
// Save TVs for NEWS
$tv = $modx->getObject('modTemplateVar', array ('name'=>'mod'));
$tv->setValue($doc->get('id'), $mod);
$tv->save();
$tv = $modx->getObject('modTemplateVar', array ('name'=>'tb_send_date'));
$tv->setValue($doc->get('id'), $send_date);
$tv->save();
For now, the parent part is hardcoded with id 34 but this should change when I solved my problem.
It would be nice, if someone could help me with a tip or a hint into the right direction.