Alerts

Last modified by Vincent Massol on 2022/09/06

Add some content inside the "alerts" menu

Usage

The extension point adds the content inside the "alerts" menu (previously called "notifications" menu).

NotificationsInside.png

You must have the "admin" right on the wiki to be able to create a UI extension.

This extensions point used to be contributed by the Notifications Application in version 7.4-milestone-1, that is why it mentions "notifications" in its name. Since 9.10-rc-1, it comes with the Alerts Application

Definition

This Extension Point is contributed by this extension and was added in version 9.10-rc-1 of that extension.

Category
Alerts
Extension Id
org.xwiki.platform.notifications
Content to be provided

The code to add in the extension point.

It should look like this:

{{velocity}}{{html clean="false"}} ## we need clean="false" because we want to display the raw content
 #template('menus_macros.vm')
 #submenuitem($url, $linkText, $id, $class, $icon, $extraAttributes)
{{/html}}{{/velocity}}
Parameters to be provided
  • order: the order in which the item will be displayed. The lower the number is, the more on the top the item is. Examples of correct orders: 10000, 20000. Please let enough room to add other UIX between existing ones and your own. The current items have these orders:
    Watchlist Icons10000
    XWiki 9.2+ Notifications Displayer20000
  • separator: (optional) true if a separator should be displayed before the item.

Get Connected