I'm trying to write a plugin that posts to twitter when a new blog post is created. This is my thinking:
- Listen for a save event
- Check if data exists in the storage
- Check taxonomy
- Evaluate and act
The problem that I'm facing is that I'm not sure which event to use. I'm new to Grav, so I'm probably just missing something... I've looked at the Grav lifecylce to ascertain what event to use, but it seems to me that most of the events are aimed at "front-end" events (or events concerned with the delivery of the content, not so much the creation)
Could someone perhaps point me in the right direction?