This project is read-only.

Allow closing of INotificationProvider messages

Topics: Customizing Orchard, General, Writing modules
Jul 28, 2011 at 8:44 PM

We were looking into using INotificationProvider to let the user know that they have items awaiting in a queue, and it works really, really well with just a little code.  The one thing that we will need it to do is to provide the ability for the user to close the message and have us write something to the database to suppress that warning next time (via a callback of some sort).  Is something like this possible, or is the Notification Provider just for simple messages?

Jul 28, 2011 at 8:50 PM

I think one way to handle it is to have the message return some HTML that links to a "close message" page and that could handle the database call, and then redirect seems like what the Migrations message does when a module needs updating...