Skip to content

Control Panel: Customize the notification for saving entries #592

@fjahn

Description

@fjahn

I would love if I could set a flexible, custom notification text when an entry is saved. Right now, the message is always 'Saved':

Bildschirmfoto 2021-07-06 um 10 36 28

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 notification to EntrySaving. This property can be set by any EntrySaving listeners. It could be prefilled with the default value ('Saved').
  • When Entry::save is called, return the EntrySaving event after it was passed through the listeners.
  • Refactor EntriesController so it returns that notification, instead of the default one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions