I need to turn CB off for the blog on a site. I have a plugin firing OnDocFormPreRender as below but new resources still have CB enabled. What am I doing wrong?!
Make sure the right plugin event is checked and that your cache is cleared. If all that’s set up, it could be the priority. If your plugin executes after the ContentBlocks one, it wont work. This is also mentioned in that FAQ entry:
Note: this only works if the ContentBlocks plugin has a higher priority number on the OnDocFormPrerender event than your own plugin. You can quickly edit this by right clicking the system event, choosing Update Plugin Event, and double clicking in the Priority column.
I agree with you completely and I know I shouldn’t hack the plugin, and I also just realized what I did wrong.
With ‘higher priority’, I was thinking a LOWER number (the lower the number, the higher the priority, right?). But I think it’s the other way around.
So Contenblocks priority=1, and my plugin priority=0.
The wording confused me I guess.