pepebe
12/22/2012 - 1:00 PM

MODx Revo: How to get new doc id with OnDocFormSave

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 :) */