I'm working with backoffice events where I am showing some important messages to the user through the EventMessage(...) interface. However, I find that the messages don't stay for more than a few seconds, and since some of my messages are a bit "elaborated", I would like them to stay a little bit longer.
I'm afraid that I don't know how to do this using the C# API's but I'm wondering wether what you're doing could be achieved easier using the backoffice UI api and then making use of the notifications service here https://our.umbraco.org/apidocs/ui/#/api/umbraco.services.notificationsService - Then you could perhaps just set the "sticky" option to true if you're using the "add" method?
I am using the notificationService in my plugin controller, but here I am stuck down in this server-side event handler. And I don't know any way to pass information from here up to the controller. But maybe you can help? Here's my code:
Backoffice notification message duration
I'm working with backoffice events where I am showing some important messages to the user through the EventMessage(...) interface. However, I find that the messages don't stay for more than a few seconds, and since some of my messages are a bit "elaborated", I would like them to stay a little bit longer.
Anybody who knows how to do that?
Hi Bendik
I'm afraid that I don't know how to do this using the C# API's but I'm wondering wether what you're doing could be achieved easier using the backoffice UI api and then making use of the notifications service here https://our.umbraco.org/apidocs/ui/#/api/umbraco.services.notificationsService - Then you could perhaps just set the "sticky" option to true if you're using the "add" method?
Hope this helps.
/Jan
Hi Jan and thank you for your advice!
I am using the notificationService in my plugin controller, but here I am stuck down in this server-side event handler. And I don't know any way to pass information from here up to the controller. But maybe you can help? Here's my code:
is working on a reply...