Wiki source code of Enable or Disable Notifications
Last modified by superadmin on 2026/10/14 18:26
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
![]() |
3.1 | 1 | Two properties of ##xwiki.properties##, among those [[Notification Configuration Properties>>doc:documentation.xs.admin.notifications.configuration-properties.WebHome]] lists, switch off the whole notifications feature and its mail channel alone. |
| 2 | |||
| 3 | 1. Open ##xwiki.properties##, in the ##WEB-INF## directory of the wiki's web application. | ||
| 4 | 1. Set ##notifications.enabled## to ##false## to stop the feature, or back to ##true## to start it again.((( | ||
| 5 | {{code language="cfg"}} | ||
| 6 | notifications.enabled = false | ||
| 7 | {{/code}} | ||
| 8 | ))) | ||
| 9 | 1. Set ##notifications.emails.enabled## instead to stop only the mail, leaving the notifications menu and the RSS feeds working.((( | ||
| 10 | {{code language="cfg"}} | ||
| 11 | notifications.emails.enabled = false | ||
| 12 | {{/code}} | ||
| 13 | ))) | ||
| 14 | 1. Restart the servlet container. | ||
| 15 | 1. Open the "Notifications" tab of a user profile and check the result: with the mail off, the settings no longer offer "Email Preferences"; with the whole feature off, the tab itself and the bell in the top bar are gone.((( | ||
| 16 | {{image reference="notifications-emails-disabled.png" size="extra" alt="The notification settings of a user profile, without the email preferences, after the mail was switched off"/}} | ||
| 17 | ))) |
