core
core copied to clipboard
[General] Smarter alerts
Q | A |
---|---|
Zikula Version | Na |
PHP Version | NA |
Our alerts are not configurable at all. It is a feature request. Perfect solution hmm... Place in the administration where all alerts (error, info, status etc..) are listed and we can configure: Alert type (info warning error success) - just the look it still should be 403 etc... Alert close feature - no close, close button, timeout
I know it is a feature request and probably will be marked as for 10.0.0 version - but still...
Alternatively, catch it if possible and compare with some sort of customization "remap" table then display...
For example, I do not like when login is needed and user is shown danger error it is not really an error it should be more user-friendly :) etc...
Second thing is that all alerts should at least have dismiss/close button by default if not timeout like in all other apps on the planet ;)
Bootstrap 4 has two useful innovations for this:
- More contextual classes
https://getbootstrap.com/docs/4.4/components/alerts/
- Toasts
https://getbootstrap.com/docs/4.4/components/toasts/