MODx Revo: How to get new doc id with OnDocFormSave
/* How to get new doc id with OnDocFormSave
 * http://forums.modx.com/index.php?topic=34612.0 
 */
$e = $modx->Event;
$docid = $e->params['id'];
/* Finally a way to autocreate folders on  resource creation :) */