-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
statamic/cms
#4449Description
I would love if I could set a flexible, custom notification text when an entry is saved. Right now, the message is always 'Saved':
I would like to be able to set this within a EntrySaving event. I have briefly read through the code and I believe that these are the steps required to accomplish this:
- Refactor the entry saving process so the success notification text gets returned by the controller, and not defined in the frontend.
- Add a new property
notificationtoEntrySaving. This property can be set by anyEntrySavinglisteners. It could be prefilled with the default value ('Saved'). - When
Entry::saveis called, return theEntrySavingevent after it was passed through the listeners. - Refactor
EntriesControllerso it returns that notification, instead of the default one.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
