Thanks, just getting back to modx after years of absence, and I'm having a hard time getting back into it, especially when supporting an existing project.
I'v realized that I've used a snippet instead of plugin, and then haven't checked the calls of the plugin, so I've been able to run this eventually
switch ($modx->event->name) {
case 'OnDocFormPrerender':
$modx->event->output('<script>alert("OnDocFormPrerender");</script>');
break;
break;
}
return;
any resources you could point me to to only use in a certain template, and how to edit the layout?
I'm thinking of just applying a css that targets the 'tr #tv!!-tr` where !! is the id of the tv I'm targeting. I suppose this would not need to check whether the right template is used in the first place. And I can probably use plain javascript to insert headings.