Alerts

Version 13.2 by Vincent Massol on 2019/06/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, that is why it mentions "notifications" in its name. Since 9.10RC1, it comes with the Alerts Application

Definition

This Extension Point is contributed by this extension and was added in version 7.4-milestone-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
    Notifications Displayer (Since 9.2RC1)20000
  • separator: (optional) true if a separator should be displayed before the item.
Tags:
   

Get Connected