Timeline for Add errors to an event via plugin
Current License: CC BY-SA 3.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 9, 2014 at 11:19 | comment | added | Brandon Kelly | @DouglasMcDonald Sorry I didn’t realize you meant within the CP. That may be a case where it would make sense to give the event a little more power. I’ll put it on the list to think about. | |
Oct 9, 2014 at 4:09 | comment | added | Douglas McDonald |
I agree in principle 100%. Just trying to figure out a workaround? Is it possible to re-route default actions (i.e. action/saveEntry ) to a custom plugin controller using registerCPRoutes? If so, that would definitely solve the problem.
|
|
Oct 8, 2014 at 16:23 | comment | added | Brandon Kelly | @DouglasMcDonald I’m generally of the opinion that events should just be notifications. If you want to add additional validation, that can be handled with a custom controller. | |
Oct 8, 2014 at 16:17 | comment | added | Douglas McDonald | I'm in a similar situation of needing to do additional validation onBeforeSaveEntry and would like to stop the action gracefully. Is this something that you have considered adding? Or would this be considered bad form in general to allow events to interfere with an action? | |
Oct 8, 2014 at 15:57 | history | answered | Brandon Kelly | CC BY-SA 3.0 |