* The document template is taken from “$modx->Event->params['template']” if it exists.