Messages to Users?


#1

Hello,

I am looking for a simple way to add messages for users to see when they log in. (Could be just info, or important messages such as scheduled downtime).

Even better would be if I could also show messages to specific user groups and/or users.

I don’t mind if I have to type these messages in a Twig template file.

Any suggestions?


#2

It’s a useful sort of feature that I’d like to see in core at some point.

Not sure the best nor easiest way to achieve this though.

I guess you could have an alerts API endpoint, and query it from the frontend. Could use a basic age expiration system to prevent old alerts appearing forever, and have the frontend keep track of read alerts to prevent pestering. You could theoretically extend such a system to support tagretting user groups in time as well.