Skip to content

Commit 8572f61

Browse files
Update README.md
1 parent 99a0b68 commit 8572f61

File tree

1 file changed

+11
-0
lines changed
  • 10/umbraco-cms/reference/notifications

1 file changed

+11
-0
lines changed

10/umbraco-cms/reference/notifications/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,17 @@ Useful for manipulating the model before it is sent to an editor in the backoffi
275275

276276
Umbraco uses notifications to allow people to hook into different workflow processes. This notification pattern is extensible, allowing you to create and publish custom notifications, and other people to observe and hook into your custom processes. This approach can be useful when creating Umbraco packages. For more information on how you create and publish your own notifications, see the [creating and publishing notifications](creating-and-publishing-notifications.md) article.
277277

278+
##Showing messages in the CMS
279+
280+
You can inform the Umbraco user of the status of your notification by adding messages to the ```notification.Messages``` property.
281+
282+
For example:
283+
```
284+
notification.Messages.Add(new EventMessage("An Error occoured",
285+
"Detail about the error",
286+
EventMessageType.Error));
287+
```
288+
278289
## Samples
279290

280291
Below you can find some articles with some examples using Notifications.

0 commit comments

Comments
 (0)