unikent / astro

MIT License
7 stars 2 forks source link

Feature/page dynamic block events #285

Closed sy238-unikent closed 6 years ago

sy238-unikent commented 6 years ago

Adds page changing events to Astro using Laravel's standard events mechanism.

An App\Events\PageEvent event object is created and dispatched whenever a page changes.

Trigger a PageEvent whenever a page is modified and notify any dynamic blocks on that page.

The available events are defined as constants within the App\Events\PageEvent class.

This needs work in the future to include relevant / useful additional data for each event.